From 72a42c60a441da57b2aaad73d5695b304fd31d39 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Sat, 29 Mar 2008 05:51:38 +0100 Subject: [PATCH] UCB1*: Fix wrt. struct ucb1_playout expansion --- uct/policy/ucb1amaf.c | 2 ++ uct/policy/ucb1tuned.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/uct/policy/ucb1amaf.c b/uct/policy/ucb1amaf.c index 3c70449..157470b 100644 --- a/uct/policy/ucb1amaf.c +++ b/uct/policy/ucb1amaf.c @@ -18,6 +18,7 @@ struct ucb1_policy { * produce way too wide searches; reduce this to get deeper and * narrower readouts - try 0.2. */ float explore_p; + float fpu; }; @@ -65,6 +66,7 @@ policy_ucb1amaf_init(struct uct *u, char *arg) p->wants_amaf = true; b->explore_p = 0.2; + b->fpu = INFINITY; if (arg) { char *optspec, *next = arg; diff --git a/uct/policy/ucb1tuned.c b/uct/policy/ucb1tuned.c index 281a063..25a1252 100644 --- a/uct/policy/ucb1tuned.c +++ b/uct/policy/ucb1tuned.c @@ -18,6 +18,7 @@ struct ucb1_policy { * produce way too wide searches; reduce this to get deeper and * narrower readouts - try 0.2. */ float explore_p; + float fpu; }; @@ -63,6 +64,7 @@ policy_ucb1tuned_init(struct uct *u, char *arg) p->update = ucb1_update; b->explore_p = 0.2; + b->fpu = INFINITY; if (arg) { char *optspec, *next = arg; -- 2.11.4.GIT