Skip to content

Commit

Permalink
Set digits in adjusted eval params all to 7
Browse files Browse the repository at this point in the history
Passed non-regression STC:
https://tests.stockfishchess.org/tests/view/66fc493d86d5ee47d953b94c
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 57696 W: 15098 L: 14898 D: 27700
Ptnml(0-2): 205, 6784, 14678, 6968, 213

Passed non-regression LTC:
https://tests.stockfishchess.org/tests/view/66fd4b9386d5ee47d953b9d5
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 93786 W: 23868 L: 23721 D: 46197
Ptnml(0-2): 55, 10322, 25993, 10467, 56

bench 1293173
  • Loading branch information
linrock committed Oct 4, 2024
1 parent 81c1d31 commit 0897846
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/evaluate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ Value Eval::evaluate(const Eval::NNUE::Networks& networks,
assert(!pos.checkers());

bool smallNet = use_smallnet(pos);
int v;

auto [psqt, positional] = smallNet ? networks.small.evaluate(pos, &caches.small)
: networks.big.evaluate(pos, &caches.big);

Expand All @@ -81,7 +79,7 @@ Value Eval::evaluate(const Eval::NNUE::Networks& networks,
nnue -= nnue * nnueComplexity / (smallNet ? 20233 : 17879);

int material = (smallNet ? 553 : 532) * pos.count<PAWN>() + pos.non_pawn_material();
v = (nnue * (76898 + material) + optimism * (8112 + material)) / (smallNet ? 74411 : 76256);
int v = (nnue * (77777 + material) + optimism * (7777 + material)) / 77777;

// Damp down the evaluation linearly when shuffling
v -= v * pos.rule50_count() / 212;
Expand Down

0 comments on commit 0897846

Please sign in to comment.