mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 01:03:09 +00:00
Introduce asymmetric optimism
Introduce asymmetric optimism for both side to move and opponent. Parameter tuning was done with 200k LTC games. STC: https://tests.stockfishchess.org/tests/view/653cc08fcc309ae8395622b3 LLR: 2.96 (-2.94,2.94) <0.00,2.00> Total: 98336 W: 25074 L: 24661 D: 48601 Ptnml(0-2): 339, 11612, 24890, 11951, 376 LTC: https://tests.stockfishchess.org/tests/view/653db595cc309ae839563140 LLR: 2.94 (-2.94,2.94) <0.50,2.50> Total: 83244 W: 20760 L: 20339 D: 42145 Ptnml(0-2): 51, 9306, 22498, 9705, 62 closes https://github.com/official-stockfish/Stockfish/pull/4853 Bench: 1371690
This commit is contained in:
parent
38aa70adcf
commit
908811c24a
1 changed files with 3 additions and 4 deletions
|
@ -364,14 +364,13 @@ void Thread::search() {
|
||||||
|
|
||||||
// Reset aspiration window starting size
|
// Reset aspiration window starting size
|
||||||
Value avg = rootMoves[pvIdx].averageScore;
|
Value avg = rootMoves[pvIdx].averageScore;
|
||||||
delta = Value(10) + int(avg) * avg / 17470;
|
delta = Value(10) + int(avg) * avg / 15335;
|
||||||
alpha = std::max(avg - delta, -VALUE_INFINITE);
|
alpha = std::max(avg - delta, -VALUE_INFINITE);
|
||||||
beta = std::min(avg + delta, VALUE_INFINITE);
|
beta = std::min(avg + delta, VALUE_INFINITE);
|
||||||
|
|
||||||
// Adjust optimism based on root move's averageScore (~4 Elo)
|
// Adjust optimism based on root move's averageScore (~4 Elo)
|
||||||
int opt = 113 * avg / (std::abs(avg) + 109);
|
optimism[us] = 103 * (avg + 33) / (std::abs(avg + 34) + 119);
|
||||||
optimism[us] = Value(opt);
|
optimism[~us] = -116 * (avg + 40) / (std::abs(avg + 12) + 123);
|
||||||
optimism[~us] = -optimism[us];
|
|
||||||
|
|
||||||
// Start with a small aspiration window and, in the case of a fail
|
// Start with a small aspiration window and, in the case of a fail
|
||||||
// high/low, re-search with a bigger window until we don't fail
|
// high/low, re-search with a bigger window until we don't fail
|
||||||
|
|
Loading…
Add table
Reference in a new issue