Skip to content

Commit 8b8eb2b

Browse files
committed
Test scaled Sopel net. Take 1. Bench: 3418901
1 parent 59c6654 commit 8b8eb2b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/evaluate.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,11 @@ Value Eval::evaluate(const Position& pos) {
10921092
// Scale and shift NNUE for compatibility with search and classical evaluation
10931093
auto adjusted_NNUE = [&]()
10941094
{
1095-
Value nnue = NNUE::evaluate(pos) + Time.tempoNNUE;
1095+
int param1 = 903, param2 = 28, param3 = 28;
1096+
1097+
int scale = param1 + param2 * pos.count<PAWN>() + param3 * pos.non_pawn_material() / 1024;
1098+
1099+
Value nnue = NNUE::evaluate(pos) * scale / 1024 + Time.tempoNNUE;
10961100

10971101
if (pos.is_chess960())
10981102
nnue += fix_FRC(pos);

0 commit comments

Comments
 (0)