1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 16:53:09 +00:00
BadFish/src/nnue
Robert Nurnberg 9b92ada935 Base WDL model on material count and normalize evals dynamically
This PR proposes to change the parameter dependence of Stockfish's
internal WDL model from full move counter to material count. In addition
it ensures that an evaluation of 100 centipawns always corresponds to a
50% win probability at fishtest LTC, whereas for master this holds only
at move number 32. See also
https://github.com/official-stockfish/Stockfish/pull/4920 and the
discussion therein.

The new model was fitted based on about 340M positions extracted from
5.6M fishtest LTC games from the last three weeks, involving SF versions
from e67cc979fd (SF 16.1) to current
master.

The involved commands are for
[WDL_model](https://github.com/official-stockfish/WDL_model) are:
```
./updateWDL.sh --firstrev e67cc979fd
python scoreWDL.py updateWDL.json --plot save --pgnName update_material.png --momType "material" --momTarget 58 --materialMin 10 --modelFitting optimizeProbability
```

The anchor `58` for the material count value was chosen to be as close
as possible to the observed average material count of fishtest LTC games
at move 32 (`43`), while not changing the value of
`NormalizeToPawnValue` compared to the move-based WDL model by more than
1.

The patch only affects the displayed cp and wdl values.

closes https://github.com/official-stockfish/Stockfish/pull/5121

No functional change
2024-03-20 16:29:35 +01:00
..
features Update copyright year 2024-01-04 15:47:10 +01:00
layers Remove some outdated SIMD functions 2024-01-17 18:04:29 +01:00
network.cpp Fix Raspberry Pi Compilation 2024-03-12 19:09:50 +01:00
network.h Fix Raspberry Pi Compilation 2024-03-12 19:09:50 +01:00
nnue_accumulator.h Only evaluate the PSQT part of the small net for large evals. 2024-03-03 15:29:58 +01:00
nnue_architecture.h Refactor Network Usage 2024-03-12 16:41:08 +01:00
nnue_common.h Update copyright year 2024-01-04 15:47:10 +01:00
nnue_feature_transformer.h Only evaluate the PSQT part of the small net for large evals. 2024-03-03 15:29:58 +01:00
nnue_misc.cpp Base WDL model on material count and normalize evals dynamically 2024-03-20 16:29:35 +01:00
nnue_misc.h Refactor Network Usage 2024-03-12 16:41:08 +01:00