From 0a52870b6483b7b6a80d535bfe01ac1acfdff8e3 Mon Sep 17 00:00:00 2001 From: "Robert Nurnberg @ elitebook" Date: Sun, 17 Mar 2024 15:58:03 +0100 Subject: [PATCH] 62 -> 58 fix --- src/uci.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uci.cpp b/src/uci.cpp index 227aa993ba7..cc03005ffc0 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -344,8 +344,8 @@ std::pair win_rate_params(const Position& pos) { int material = pos.count() + 3 * pos.count() + 3 * pos.count() + 5 * pos.count() + 9 * pos.count(); - // The fitted model only uses data for material counts in [10, 78], and is anchored at count 62. - double m = std::clamp(material, 10, 78) / 62.0; + // The fitted model only uses data for material counts in [10, 78], and is anchored at count 58. + double m = std::clamp(material, 10, 78) / 58.0; // Return a = p_a(material) and b = p_b(material), see github.com/official-stockfish/WDL_model constexpr double as[] = {-185.71965483, 504.85014385, -438.58295743, 474.04604627};