mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
Simplify evaluation scaling
Set digits in adjusted eval params all to 7. 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 closes https://github.com/official-stockfish/Stockfish/pull/5618 Bench: 1277182
This commit is contained in:
parent
6592b13d56
commit
e046c4ef0d
1 changed files with 2 additions and 4 deletions
|
@ -59,9 +59,7 @@ Value Eval::evaluate(const Eval::NNUE::Networks& networks,
|
||||||
|
|
||||||
assert(!pos.checkers());
|
assert(!pos.checkers());
|
||||||
|
|
||||||
bool smallNet = use_smallnet(pos);
|
bool smallNet = use_smallnet(pos);
|
||||||
int v;
|
|
||||||
|
|
||||||
auto [psqt, positional] = smallNet ? networks.small.evaluate(pos, &caches.small)
|
auto [psqt, positional] = smallNet ? networks.small.evaluate(pos, &caches.small)
|
||||||
: networks.big.evaluate(pos, &caches.big);
|
: networks.big.evaluate(pos, &caches.big);
|
||||||
|
|
||||||
|
@ -81,7 +79,7 @@ Value Eval::evaluate(const Eval::NNUE::Networks& networks,
|
||||||
nnue -= nnue * nnueComplexity / (smallNet ? 20233 : 17879);
|
nnue -= nnue * nnueComplexity / (smallNet ? 20233 : 17879);
|
||||||
|
|
||||||
int material = (smallNet ? 553 : 532) * pos.count<PAWN>() + pos.non_pawn_material();
|
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
|
// Damp down the evaluation linearly when shuffling
|
||||||
v -= v * pos.rule50_count() / 212;
|
v -= v * pos.rule50_count() / 212;
|
||||||
|
|
Loading…
Add table
Reference in a new issue