Skip to content

Commit

Permalink
Quantize eval to multiples of 16
Browse files Browse the repository at this point in the history
Removes some excess precision, helps searchs.

Effectively reintroduces evaluation grain, with a slightly different context.
official-stockfish@45dbd9c

passed STC
LLR: 2.97 (-2.94,2.94) {-0.50,1.50}
Total: 197032 W: 37938 L: 37462 D: 121632
Ptnml(0-2): 3359, 22994, 45446, 23246, 3471
https://tests.stockfishchess.org/tests/view/5ee0c228f29b40b0fc95ae53

passed LTC
LLR: 2.94 (-2.94,2.94) {0.25,1.75}
Total: 77696 W: 9970 L: 9581 D: 58145
Ptnml(0-2): 530, 7075, 23311, 7340, 592
https://tests.stockfishchess.org/tests/view/5ee21426f29b40b0fc95af43

passed LTC SMP
LLR: 2.96 (-2.94,2.94) {0.25,1.75}
Total: 64136 W: 7425 L: 7091 D: 49620
Ptnml(0-2): 345, 5416, 20228, 5718, 361
https://tests.stockfishchess.org/tests/view/5ee387bbf29b40b0fc95b04c

closes official-stockfish#2733

Bench: 4939103
  • Loading branch information
vondele authored and MichaelB7 committed Jun 16, 2020
1 parent 8b4546e commit 6859d6f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/evaluate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -925,9 +925,10 @@ namespace {
Trace::add(PAWN, pe->pawn_score(WHITE), pe->pawn_score(BLACK));
Trace::add(MOBILITY, mobility[WHITE], mobility[BLACK]);
}
#ifdef Sullivan // from #2733

// Evaluation grain
v = (v / 16) * 16;
#endif

// Side to move point of view
v = (pos.side_to_move() == WHITE ? v : -v) + Tempo;

Expand Down

0 comments on commit 6859d6f

Please sign in to comment.