feat: separate, higher cpuct at the root
The root is where the move is chosen, so it pays to keep more of its moves in play than deeper in the tree. Monty uses root_cpuct 0.4119 against cpuct 0.2826, a ratio of 1.458; with Rigby's cpuct of 1.6 that gives a root cpuct of 2.33. The visit scaling applies on top as before. Exposed as the UCI option RootCPuct (x100) next to CPuct for later tuning. Note on the previous commit: Monty's current cpuct_visits_scale is 37.63 (x128 = 4817), not 64; Rigby keeps 8192. Bench is deterministic. setoption RootCPuct works. Bench: 529903 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d39b8a3a4a
commit
b89ab39bdd
4 files changed
+9
-1
No files matched your search
@@ -97,6 +97,8 @@ struct SearchLimits {
|
||||
|
||||
struct SearchParams {
|
||||
float cpuct = 1.60f;
|
||||
// At the root: cpuct x 1.458, Monty's root_cpuct / cpuct (0.4119 / 0.2826).
|
||||
float root_cpuct = 2.33f;
|
||||
// cpuct is multiplied by 1 + ln((N + scale) / scale) for a node with N visits
|
||||
// (Monty: 64 x 128).
|
||||
float cpuct_visit_scale = 8192.0f;
|
||||
|
||||
Reference in new issue
Block a user