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
@@ -55,6 +55,7 @@ void print_id() {
|
||||
send("option name MoveOverhead type spin default 20 min 0 max 5000");
|
||||
// Search constants, exposed as integers (x100) so SPSA can tune them.
|
||||
send("option name CPuct type spin default 160 min 1 max 1000");
|
||||
send("option name RootCPuct type spin default 233 min 1 max 1000");
|
||||
send("option name FPUReduction type spin default 30 min 0 max 200");
|
||||
send("option name PolicyTemp type spin default 100 min 10 max 500");
|
||||
send("uciok");
|
||||
@@ -85,6 +86,8 @@ void set_option(Engine& e, std::istringstream& is) {
|
||||
e.searcher.params.move_overhead = std::clamp(v, 0, 5000);
|
||||
else if (lname == "cpuct")
|
||||
e.searcher.params.cpuct = float(v) / 100.0f;
|
||||
else if (lname == "rootcpuct")
|
||||
e.searcher.params.root_cpuct = float(v) / 100.0f;
|
||||
else if (lname == "fpureduction")
|
||||
e.searcher.params.fpu_reduction = float(v) / 100.0f;
|
||||
else if (lname == "policytemp")
|
||||
|
||||
Reference in new issue
Block a user