]> git.sesse.net Git - stockfish/commitdiff
Removed quadratic term in optimism
authorwindfishballad <windfishballadtcec@gmail.com>
Tue, 23 May 2023 00:13:44 +0000 (20:13 -0400)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Sun, 28 May 2023 18:05:50 +0000 (20:05 +0200)
Remove term which is quadratic in optimism in the eval.
Simplifies and should also remove the bias towards side to move making the eval better for analysis.

STC: https://tests.stockfishchess.org/tests/view/6470a9d8c29e0d4352b0bca5
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 154432 W: 41127 L: 41040 D: 72265
Ptnml(0-2): 380, 17094, 42190, 17163, 389

LTC: https://tests.stockfishchess.org/tests/view/6471e9b3e549d9cf2fb219ef
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 127926 W: 34474 L: 34369 D: 59083
Ptnml(0-2): 43, 12505, 38776, 12582, 57

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

Bench: 2541211

AUTHORS
src/evaluate.cpp

diff --git a/AUTHORS b/AUTHORS
index 884bffabe7ebc8e4832b9e483d2391cbdba5636c..d01d23cd7e9729ff8d565eee4bff389fd1b3442d 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -213,6 +213,7 @@ tttak
 Unai Corzo (unaiic)
 Uri Blass (uriblass)
 Vince Negri (cuddlestmonkey)
+windfishballad
 xefoci7612
 zz4032
 
index cc789e35d893cd2322b4699555df565288b27dfe..7239fd1eca04d8937d25021f447ece9edfdb316d 100644 (file)
@@ -1072,7 +1072,7 @@ Value Eval::evaluate(const Position& pos) {
 
       // Blend nnue complexity with (semi)classical complexity
       nnueComplexity = (  397 * nnueComplexity
-                        + (477 + optimism) * abs(psq - nnue)
+                        + 477 * abs(psq - nnue)
                         ) / 1024;
 
       optimism += optimism * nnueComplexity / 256;