Repository navigation
Commit cfeab7e
fix(eval): let the strong-rabbit bonus grow with support
rabbit_strength() scales a supported rabbit's bonus by power /
full_strong, both ints, so the factor was 0 unless power had been
clamped to full_strong, and then 1: a step instead of a ramp. Divide as
reals. On 20,000 random positions the strong branch ran 11,658 times
and gave 0 in 3,137 of them where the intended factor is well above 0.
Also fix the rabbit square table's third row, which had 0.13 on c3
where its mirror f3 has 0.14, so the term changed under a file or
colour flip (up to 7 points, in 312 of 7093 random positions). Now no
random position's rabbit strength changes under either flip.
dub test has two new eval_tests: a rabbit on c3 and its mirror on f3
score the same, and a rabbit on c6 gets more bonus with a cat on c5
than on c4, and more than 0 (both fail on the old code). Over the
602,518 game positions of a 6000-game test the rabbit term changed in
38.8%, by a median of 21 points (90th percentile 137, max 1086), evenly
between the colours.
Test: 4452 games against f68264a at 1s/30s/100/0/100t, hash 64:
+5.5 Elo [-4.9, +15.9] (95%), SPRT [0, 10] undecided (LLR 0.16),
stopped once it had under a 5% chance of deciding within 3000 pairs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent f68264a commit cfeab7e
3 files changed
Lines changed: 45 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
10 | 21 | | |
11 | 22 | | |
12 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
444 | | - | |
| 444 | + | |
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
| |||
534 | 534 | | |
535 | 535 | | |
536 | 536 | | |
537 | | - | |
| 537 | + | |
538 | 538 | | |
539 | 539 | | |
540 | 540 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
0 commit comments