From 93c3581b96e73c270190ef13e6b20dc7db53fb8b Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Wed, 22 Dec 2010 19:20:41 +0100 Subject: [PATCH] UCB1AMAF local tree: Add missing LTREE_PLAYOUTS_MULTIPLIER division --- uct/policy/ucb1amaf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uct/policy/ucb1amaf.c b/uct/policy/ucb1amaf.c index 1c969fd..a25296e 100644 --- a/uct/policy/ucb1amaf.c +++ b/uct/policy/ucb1amaf.c @@ -92,7 +92,7 @@ ucb1rave_evaluate(struct uct_policy *p, struct tree *tree, struct uct_descent *d /* Local tree heuristics. */ if (p->uct->local_tree && b->ltree_rave > 0 && lnode) { struct move_stats l = lnode->u; - l.playouts = ((float) l.playouts) * b->ltree_rave; + l.playouts = ((float) l.playouts) * b->ltree_rave / LTREE_PLAYOUTS_MULTIPLIER; LTREE_DEBUG fprintf(stderr, "[ltree] adding [%s] %f%%%d to [%s] RAVE %f%%%d\n", coord2sstr(lnode->coord, tree->board), l.value, l.playouts, coord2sstr(node->coord, tree->board), r.value, r.playouts); -- 2.11.4.GIT