Skip to content

Commit 68ab36b

Browse files
committed
SPSA Tuning 121k LTC iterations
Elo | 1.63 +- 3.13 (95%) SPRT | 10.0+0.10s Threads=1 Hash=8MB LLR | 0.91 (-2.25, 2.89) [0.00, 3.00] Games | N: 22656 W: 5487 L: 5381 D: 11788 Penta | [110, 2583, 5833, 2695, 107] Elo | 3.11 +- 3.06 (95%) SPRT | 60.0+0.60s Threads=1 Hash=64MB LLR | 2.91 (-2.25, 2.89) [0.00, 3.00] Games | N: 23356 W: 5615 L: 5406 D: 12335 Penta | [21, 2477, 6469, 2694, 17] Bench 3017694
1 parent 1a71fe4 commit 68ab36b

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

src/search.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,11 @@ void initSearch() {
152152
// Init Late Move Reductions Table
153153
for (int depth = 1; depth < 64; depth++)
154154
for (int played = 1; played < 64; played++)
155-
LMRTable[depth][played] = 0.8180 + log(depth) * log(played) / 2.4760;
155+
LMRTable[depth][played] = 0.7844 + log(depth) * log(played) / 2.4696;
156156

157157
for (int depth = 1; depth <= 10; depth++) {
158-
LateMovePruningCounts[0][depth] = 2.1719 + 0.4048 * depth * depth;
159-
LateMovePruningCounts[1][depth] = 3.9498 + 0.7760 * depth * depth;
158+
LateMovePruningCounts[0][depth] = 2.0767 + 0.3743 * depth * depth;
159+
LateMovePruningCounts[1][depth] = 3.8733 + 0.7124 * depth * depth;
160160
}
161161
}
162162

@@ -698,7 +698,7 @@ int search(Thread *thread, PVariation *pv, int alpha, int beta, int depth, bool
698698
R -= ns->mp.stage < STAGE_QUIET;
699699

700700
// Adjust based on history scores
701-
R -= MAX(-2, MIN(2, hist / 5770));
701+
R -= MAX(-2, MIN(2, hist / 6167));
702702
}
703703

704704
// Step 18B (~3 elo). Noisy Late Move Reductions. The same as Step 18A, but
@@ -707,7 +707,7 @@ int search(Thread *thread, PVariation *pv, int alpha, int beta, int depth, bool
707707
else {
708708

709709
// Initialize R based on Capture History
710-
R = 2 - (hist / 5128);
710+
R = 3 - (hist / 4952);
711711

712712
// Reduce for moves that give check
713713
R -= !!board->kingAttackers;

src/search.h

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -44,37 +44,37 @@ static const int WindowTimerMS = 2500;
4444

4545
static const int CurrmoveTimerMS = 2500;
4646

47-
static const int TTResearchMargin = 137;
47+
static const int TTResearchMargin = 141;
4848

4949
static const int BetaPruningDepth = 8;
50-
static const int BetaMargin = 62;
50+
static const int BetaMargin = 57;
5151

5252
static const int AlphaPruningDepth = 4;
53-
static const int AlphaMargin = 3328;
53+
static const int AlphaMargin = 3488;
5454

5555
static const int NullMovePruningDepth = 2;
5656

5757
static const int ProbCutDepth = 5;
58-
static const int ProbCutMargin = 98;
58+
static const int ProbCutMargin = 100;
5959

6060
static const int FutilityPruningDepth = 8;
61-
static const int FutilityMarginBase = 76;
62-
static const int FutilityMarginPerDepth = 51;
63-
static const int FutilityMarginNoHistory = 162;
64-
static const int FutilityPruningHistoryLimit[] = { 13954, 5789 };
61+
static const int FutilityMarginBase = 77;
62+
static const int FutilityMarginPerDepth = 52;
63+
static const int FutilityMarginNoHistory = 165;
64+
static const int FutilityPruningHistoryLimit[] = { 14296, 6004 };
6565

6666
static const int ContinuationPruningDepth[] = { 3, 2 };
6767
static const int ContinuationPruningHistoryLimit[] = { -1000, -2500 };
6868

69-
static const int LateMovePruningDepth = 7;
69+
static const int LateMovePruningDepth = 8;
7070

71-
static const int SEEPruningDepth = 9;
71+
static const int SEEPruningDepth = 10;
7272
static const int SEEQuietMargin = -64;
73-
static const int SEENoisyMargin = -19;
73+
static const int SEENoisyMargin = -20;
7474
static const int SEEPieceValues[] = {
75-
104, 419, 447, 693,
76-
1316, 0, 0, 0,
75+
103, 422, 437, 694,
76+
1313, 0, 0, 0,
7777
};
7878

79-
static const int QSSeeMargin = 116;
80-
static const int QSDeltaMargin = 149;
79+
static const int QSSeeMargin = 123;
80+
static const int QSDeltaMargin = 142;

0 commit comments

Comments
 (0)