1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 16:53:09 +00:00

Simplify nnueComplexity calculation.

further simplification after https://github.com/official-stockfish/Stockfish/pull/4377

STC https://tests.stockfishchess.org/tests/view/63e02a3773223e7f52ad8190
LLR: 2.97 (-2.94,2.94) <-1.75,0.25>
Total: 359072 W: 94605 L: 94733 D: 169734
Ptnml(0-2): 994, 39874, 97958, 39686, 1024

LTC https://tests.stockfishchess.org/tests/view/63e3fd12b5f425d71f77002a
LLR: 2.96 (-2.94,2.94) <-1.75,0.25>
Total: 248424 W: 66020 L: 66030 D: 116374
Ptnml(0-2): 113, 24653, 74689, 24645, 112

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

bench: 4098325
This commit is contained in:
mstembera 2023-02-12 17:33:19 -08:00 committed by Joost VandeVondele
parent 2c36d1e7e7
commit 29c1e072b6

View file

@ -1072,8 +1072,7 @@ Value Eval::evaluate(const Position& pos, int* complexity) {
// Blend nnue complexity with (semi)classical complexity
nnueComplexity = ( 406 * nnueComplexity
+ 424 * abs(psq - nnue)
+ int(optimism) * int(psq - nnue)
+ (424 + optimism) * abs(psq - nnue)
) / 1024;
// Return hybrid NNUE complexity to caller