From f71fc55d92f9ccfe07fb9c6f935c0678fefb44ab Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Thu, 21 Jul 2011 20:23:52 +0200 Subject: [PATCH] UCB1AMAF: LTREE_DEBUG -> URAVE_DEBUG --- uct/policy/ucb1amaf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uct/policy/ucb1amaf.c b/uct/policy/ucb1amaf.c index 9f6686e..53178c5 100644 --- a/uct/policy/ucb1amaf.c +++ b/uct/policy/ucb1amaf.c @@ -79,7 +79,7 @@ static inline floating_t fast_sqrt(unsigned int x) } } -#define LTREE_DEBUG if (0) +#define URAVE_DEBUG if (0) static floating_t inline ucb1rave_evaluate(struct uct_policy *p, struct tree *tree, struct uct_descent *descent, int parity) { @@ -100,7 +100,7 @@ ucb1rave_evaluate(struct uct_policy *p, struct tree *tree, struct uct_descent *d && (p->uct->local_tree_rootchoose || lnode->parent->parent)) { struct move_stats l = lnode->u; l.playouts = ((floating_t) l.playouts) * b->ltree_rave / LTREE_PLAYOUTS_MULTIPLIER; - LTREE_DEBUG fprintf(stderr, "[ltree] adding [%s] %f%%%d to [%s] RAVE %f%%%d\n", + URAVE_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); stats_merge(&r, &l); @@ -114,7 +114,7 @@ ucb1rave_evaluate(struct uct_policy *p, struct tree *tree, struct uct_descent *d .value = tree_node_get_value(tree, parity, 1.0f), .playouts = crit * r.playouts * b->crit_rave }; - LTREE_DEBUG fprintf(stderr, "[crit] adding %f%%%d to [%s] RAVE %f%%%d\n", + URAVE_DEBUG fprintf(stderr, "[crit] adding %f%%%d to [%s] RAVE %f%%%d\n", c.value, c.playouts, coord2sstr(node->coord, tree->board), r.value, r.playouts); stats_merge(&r, &c); -- 2.11.4.GIT