Skip to content

Commit

Permalink
Bench 2521244
Browse files Browse the repository at this point in the history
Reintroduce nnue pawn scaling (tuned 60k)
  • Loading branch information
cj5716 committed May 30, 2023
1 parent 7e9b131 commit 79bb2e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/evaluate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ Value Eval::evaluate(const Position& pos) {
else
{
int nnueComplexity;
int npm = pos.non_pawn_material() / 64;
int npm = 15 * pos.non_pawn_material() / 1024;

Color stm = pos.side_to_move();
Value optimism = pos.this_thread()->optimism[stm];
Expand All @@ -1076,7 +1076,7 @@ Value Eval::evaluate(const Position& pos) {
) / 1024;

optimism += optimism * nnueComplexity / 256;
v = (nnue * (945 + npm) + optimism * (174 + npm)) / 1024;
v = (nnue * (960 + npm) + optimism * (159 + npm - pos.count<PAWN>())) / 1024;
}

// Damp down the evaluation linearly when shuffling
Expand Down

1 comment on commit 79bb2e8

@locutus2
Copy link

@locutus2 locutus2 commented on 79bb2e8 May 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cj5716
It would be better to test LTC on top of the new passed net because this can interaction with the nnue scaling: official-stockfish#4593

Please sign in to comment.