Skip to content

Commit e3205ec

Browse files
Vizvezdenecjoergoster
authored andcommitted
Tune search parameters (with Unai Corzo)
The values used in this patch are taken from a SPSA parameter tuning session originated by Unai Corzo (@unaiic), but the final difference of his tune was multiplied x2 by hand. Most of the credits should go to him :-) STC: https://tests.stockfishchess.org/tests/view/602f03d07f517a561bc49d40 LLR: 2.94 (-2.94,2.94) {-0.25,1.25} Total: 67664 W: 6252 L: 6035 D: 55377 Ptnml(0-2): 256, 4799, 23527, 4972, 278 LTC: https://tests.stockfishchess.org/tests/view/602f41697f517a561bc49d5a LLR: 2.96 (-2.94,2.94) {0.25,1.25} Total: 26256 W: 1034 L: 906 D: 24316 Ptnml(0-2): 10, 804, 11377, 922, 15 Closes official-stockfish/Stockfish#3363 Bench: 3957653
1 parent 7001bb2 commit e3205ec

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/search.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ namespace {
793793
&& !PvNode
794794
&& !excludedMove
795795
&& (ss-1)->currentMove != MOVE_NULL
796-
&& (ss-1)->statScore < 22661
796+
&& (ss-1)->statScore < 24185
797797
&& eval >= beta
798798
&& eval >= ss->staticEval
799799
&& ss->staticEval >= beta - 24 * depth - 34 * improving + 162 * ss->ttPv + 159
@@ -1021,7 +1021,7 @@ namespace {
10211021
&& (*contHist[0])[movedPiece][to_sq(move)]
10221022
+ (*contHist[1])[movedPiece][to_sq(move)]
10231023
+ (*contHist[3])[movedPiece][to_sq(move)]
1024-
+ (*contHist[5])[movedPiece][to_sq(move)] / 3 < 26237)
1024+
+ (*contHist[5])[movedPiece][to_sq(move)] / 3 < 28255)
10251025
continue;
10261026

10271027
// Prune moves with negative SEE (~20 Elo)
@@ -1119,7 +1119,7 @@ namespace {
11191119
|| moveCountPruning
11201120
|| ss->staticEval + PieceValue[EG][pos.captured_piece()] <= alpha
11211121
|| cutNode
1122-
|| (!PvNode && !formerPv && captureHistory[movedPiece][to_sq(move)][type_of(pos.captured_piece())] < 4506)
1122+
|| (!PvNode && !formerPv && captureHistory[movedPiece][to_sq(move)][type_of(pos.captured_piece())] < 3678)
11231123
|| thisThread->ttHitAverage < 432 * TtHitAverageResolution * TtHitAverageWindow / 1024))
11241124
{
11251125
Depth r = reduction(improving, depth, moveCount);
@@ -1183,7 +1183,7 @@ namespace {
11831183
+ (*contHist[0])[movedPiece][to_sq(move)]
11841184
+ (*contHist[1])[movedPiece][to_sq(move)]
11851185
+ (*contHist[3])[movedPiece][to_sq(move)]
1186-
- 5337;
1186+
- 4741;
11871187

11881188
// Decrease/increase reduction by comparing opponent's stat score (~10 Elo)
11891189
if (ss->statScore >= -89 && (ss-1)->statScore < -116)
@@ -1197,9 +1197,9 @@ namespace {
11971197
// use sum of main history and first continuation history with an offset
11981198
if (ss->inCheck)
11991199
r -= (thisThread->mainHistory[us][from_to(move)]
1200-
+ (*contHist[0])[movedPiece][to_sq(move)] - 4341) / 16384;
1200+
+ (*contHist[0])[movedPiece][to_sq(move)] - 3833) / 16384;
12011201
else
1202-
r -= ss->statScore / 14382;
1202+
r -= ss->statScore / 14790;
12031203
}
12041204

12051205
Depth d = std::clamp(newDepth - r, 1, newDepth);

0 commit comments

Comments
 (0)