]> git.sesse.net Git - stockfish/commit - src/evaluate.cpp
Add a specific FRC correction from classical to NNUE
authorVizvezdenec <Vizvezdenec@gmail.com>
Mon, 15 Mar 2021 18:05:01 +0000 (19:05 +0100)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Fri, 19 Mar 2021 10:58:17 +0000 (11:58 +0100)
commitace9632c6713e346ccca73b3e2edc046c1f5527c
treeab335073b5dde821511addfd8fd7435e7076fea3
parent50890616591443ab06faa0927747bf14c8d450e3
Add a specific FRC correction from classical to NNUE

our net currently is not trained on FRC games, and so doesn't know about the important pattern of a bishop that is cornered in FRC.
This patch introduces a term we have in the classical evaluation for this case, and adds it to the NNUE eval.

Since fishtest doesn't support FRC right now, the patch was tested locally at STC conditions,
starting from the book of FRC starting positions.

Score of master vs patch: 993 - 2226 - 6781  [0.438] 10000

Which corresponds to approximately 40 Elo

The patch passes non-regression testing for traditional chess (where it adds one branch).

passed STC:
https://tests.stockfishchess.org/tests/view/604fa2532433018de7a38b67
LLR: 2.95 (-2.94,2.94) {-1.25,0.25}
Total: 30560 W: 2701 L: 2636 D: 25223
Ptnml(0-2): 88, 2056, 10921, 2133, 82

passed STC also in an earlier version:
https://tests.stockfishchess.org/tests/view/604f61282433018de7a38b4d

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

No functional change
src/evaluate.cpp