Skip to content

Commit 6294db7

Browse files
Vizvezdenecsnicolet
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 #3363 Bench: 3957653
1 parent a31007c commit 6294db7

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
@@ -839,7 +839,7 @@ namespace {
839839
// Step 8. Null move search with verification search (~40 Elo)
840840
if ( !PvNode
841841
&& (ss-1)->currentMove != MOVE_NULL
842-
&& (ss-1)->statScore < 22661
842+
&& (ss-1)->statScore < 24185
843843
&& eval >= beta
844844
&& eval >= ss->staticEval
845845
&& ss->staticEval >= beta - 24 * depth - 34 * improving + 162 * ss->ttPv + 159
@@ -1075,7 +1075,7 @@ namespace {
10751075
&& (*contHist[0])[movedPiece][to_sq(move)]
10761076
+ (*contHist[1])[movedPiece][to_sq(move)]
10771077
+ (*contHist[3])[movedPiece][to_sq(move)]
1078-
+ (*contHist[5])[movedPiece][to_sq(move)] / 3 < 26237)
1078+
+ (*contHist[5])[movedPiece][to_sq(move)] / 3 < 28255)
10791079
continue;
10801080

10811081
// Prune moves with negative SEE (~20 Elo)
@@ -1167,7 +1167,7 @@ namespace {
11671167
|| moveCountPruning
11681168
|| ss->staticEval + PieceValue[EG][pos.captured_piece()] <= alpha
11691169
|| cutNode
1170-
|| (!PvNode && !formerPv && captureHistory[movedPiece][to_sq(move)][type_of(pos.captured_piece())] < 4506)
1170+
|| (!PvNode && !formerPv && captureHistory[movedPiece][to_sq(move)][type_of(pos.captured_piece())] < 3678)
11711171
|| thisThread->ttHitAverage < 432 * TtHitAverageResolution * TtHitAverageWindow / 1024))
11721172
{
11731173
Depth r = reduction(improving, depth, moveCount);
@@ -1232,7 +1232,7 @@ namespace {
12321232
+ (*contHist[0])[movedPiece][to_sq(move)]
12331233
+ (*contHist[1])[movedPiece][to_sq(move)]
12341234
+ (*contHist[3])[movedPiece][to_sq(move)]
1235-
- 5337;
1235+
- 4741;
12361236

12371237
// Decrease/increase reduction by comparing opponent's stat score (~10 Elo)
12381238
if (ss->statScore >= -89 && (ss-1)->statScore < -116)
@@ -1246,9 +1246,9 @@ namespace {
12461246
// use sum of main history and first continuation history with an offset
12471247
if (ss->inCheck)
12481248
r -= (thisThread->mainHistory[us][from_to(move)]
1249-
+ (*contHist[0])[movedPiece][to_sq(move)] - 4341) / 16384;
1249+
+ (*contHist[0])[movedPiece][to_sq(move)] - 3833) / 16384;
12501250
else
1251-
r -= ss->statScore / 14382;
1251+
r -= ss->statScore / 14790;
12521252
}
12531253

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

0 commit comments

Comments
 (0)