From 48863c4cdb6d3ec1c8bcf80e8b5b283ecb0e5c30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduardo=20C=C3=A1ceres?= Date: Wed, 15 Nov 2023 12:24:01 +0100 Subject: [PATCH] Update score normalization --- src/Lynx/EvaluationConstants.cs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/Lynx/EvaluationConstants.cs b/src/Lynx/EvaluationConstants.cs index 5a1528ae7..d9b08314b 100644 --- a/src/Lynx/EvaluationConstants.cs +++ b/src/Lynx/EvaluationConstants.cs @@ -9,14 +9,20 @@ namespace Lynx; public static class EvaluationConstants { /// - /// 30k games, 16+0.16, UHO_XXL_+0.90_+1.19.epd - /// Retained (W,D,L) = (791773, 1127929, 793778) positions. + /// 21454 games, 16+0.16, UHO_XXL_+0.90_+1.19.epd + /// Retained (W,D,L) = (486074, 1108791, 487345) positions. /// - public const int EvalNormalizationCoefficient = 78; + public const int EvalNormalizationCoefficient = 138; - public static readonly double[] As = [-44.54789428, 284.90322556, -305.65458204, 143.86777995]; + public static readonly double[] As = [-25.59900221, 175.23377472, -145.09355540, 133.49051930]; - public static readonly double[] Bs = [-21.08101051, 127.81742295, -160.22340655, 128.53122955]; + public static readonly double[] Bs = [-14.14613328, 84.98205725, -101.16332276, 120.88906952]; + + public static readonly int[] GamePhaseByPiece = + [ + 0, 1, 1, 2, 4, 0, + 0, 1, 1, 2, 4, 0 + ]; public static readonly int[] MiddleGamePieceValues = [ @@ -30,12 +36,6 @@ public static class EvaluationConstants -109, -356, -324, -653, -1123, 0 ]; - public static readonly int[] GamePhaseByPiece = -[ - 0, 1, 1, 2, 4, 0, - 0, 1, 1, 2, 4, 0 -]; - public static readonly int[] MiddleGamePawnTable = [ 0, 0, 0, 0, 0, 0, 0, 0,