Skip to content

Commit 6a04c92

Browse files
VizvezdenecMichaelB7
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#3363 Bench: 3957653
1 parent 991d7d6 commit 6a04c92

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
@@ -1211,7 +1211,7 @@ namespace {
12111211
&& depth > 5
12121212
#endif
12131213
&& (ss-1)->currentMove != MOVE_NULL
1214-
&& (ss-1)->statScore < 22661
1214+
&& (ss-1)->statScore < 24185
12151215
&& eval >= beta
12161216
&& eval >= ss->staticEval
12171217
&& ss->staticEval >= beta - 24 * depth - 34 * improving + 162 * ss->ttPv + 159
@@ -1490,7 +1490,7 @@ namespace {
14901490
&& (*contHist[0])[movedPiece][to_sq(move)]
14911491
+ (*contHist[1])[movedPiece][to_sq(move)]
14921492
+ (*contHist[3])[movedPiece][to_sq(move)]
1493-
+ (*contHist[5])[movedPiece][to_sq(move)] / 3 < 26237)
1493+
+ (*contHist[5])[movedPiece][to_sq(move)] / 3 < 28255)
14941494
continue;
14951495

14961496
// Prune moves with negative SEE (~20 Elo)
@@ -1618,7 +1618,7 @@ namespace {
16181618
|| moveCountPruning
16191619
|| ss->staticEval + PieceValue[EG][pos.captured_piece()] <= alpha
16201620
|| cutNode
1621-
|| (!PvNode && !formerPv && captureHistory[movedPiece][to_sq(move)][type_of(pos.captured_piece())] < 4506)
1621+
|| (!PvNode && !formerPv && captureHistory[movedPiece][to_sq(move)][type_of(pos.captured_piece())] < 3678)
16221622
|| thisThread->ttHitAverage < 432 * TtHitAverageResolution * TtHitAverageWindow / 1024))
16231623
{
16241624
Depth r = reduction(improving, depth, moveCount);
@@ -1689,7 +1689,7 @@ namespace {
16891689
+ (*contHist[0])[movedPiece][to_sq(move)]
16901690
+ (*contHist[1])[movedPiece][to_sq(move)]
16911691
+ (*contHist[3])[movedPiece][to_sq(move)]
1692-
- 5337;
1692+
- 4741;
16931693

16941694
// Decrease/increase reduction by comparing opponent's stat score (~10 Elo)
16951695
if (ss->statScore >= -89 && (ss-1)->statScore < -116)
@@ -1703,9 +1703,9 @@ namespace {
17031703
// the sum of main history and first continuation history with an offset.
17041704
if (ss->inCheck)
17051705
r -= (thisThread->mainHistory[us][from_to(move)]
1706-
+ (*contHist[0])[movedPiece][to_sq(move)] - 4341) / 16384;
1706+
+ (*contHist[0])[movedPiece][to_sq(move)] - 3833) / 16384;
17071707
else
1708-
r -= ss->statScore / 14382;
1708+
r -= ss->statScore / 14790;
17091709
}
17101710

17111711
// In general we want to cap the LMR depth search at newDepth. But for nodes

0 commit comments

Comments
 (0)