From 18389e269d43af69c96521f3fe9d85e6b7ed073c Mon Sep 17 00:00:00 2001 From: Dubslow Date: Tue, 26 Jul 2022 23:45:19 -0500 Subject: [PATCH] remove useClassical depth condition passed STC: https://tests.stockfishchess.org/tests/view/62e0c3e98e4fa6ae472695ed LLR: 2.96 (-2.94,2.94) <-2.25,0.25> Total: 293568 W: 78934 L: 79151 D: 135483 Ptnml(0-2): 1344, 31488, 81366, 31213, 1373 passed LTC: https://tests.stockfishchess.org/tests/view/62e190aa8e4fa6ae4726b5b5 LLR: 2.98 (-2.94,2.94) <-2.25,0.25> Total: 187392 W: 50971 L: 51028 D: 85393 Ptnml(0-2): 384, 17801, 57369, 17772, 370 other attempts to otherwise tune this parameter failed, bounds 6,7,10,11 failed STC, 8 passed STC but failed LTC closes https://github.com/official-stockfish/Stockfish/pull/4112 bench 5796377 --- src/evaluate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/evaluate.cpp b/src/evaluate.cpp index d340d3d5..9e3eaba5 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -1055,7 +1055,7 @@ Value Eval::evaluate(const Position& pos, int* complexity) { Value psq = pos.psq_eg_stm(); // Deciding between classical and NNUE eval (~10 Elo): for high PSQ imbalance we use classical, // but we switch to NNUE during long shuffling or with high material on the board. - bool useClassical = (pos.this_thread()->depth > 9 || pos.count() > 7) + bool useClassical = (pos.count() > 7) && abs(psq) * 5 > (856 + pos.non_pawn_material() / 64) * (10 + pos.rule50_count()); // Deciding between classical and NNUE eval (~10 Elo): for high PSQ imbalance we use classical, -- 2.39.2