Skip to content

Commit

Permalink
Param Tuning
Browse files Browse the repository at this point in the history
Book: winrate 65_85
TC: 400+4
Total/Win/Draw/Lose: 24904 / 6257 / 12605 / 6042
PTNML: 2 / 2202 / 7834 / 2407 / 7
WinRate: 50.43%
ELO: 2.75[0.76, 4.71]
LOS: 99.64
LLR: 3.10[-2.94, 2.94]

Tuning done by afkbad
  • Loading branch information
PikaCat-OuO committed Oct 29, 2024
1 parent 79e8d50 commit a11d4af
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 66 deletions.
8 changes: 4 additions & 4 deletions src/evaluate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ Value Eval::evaluate(const Eval::NNUE::Network& network,
int nnueComplexity = std::abs(psqt - positional);

// Blend optimism and eval with nnue complexity
optimism += optimism * nnueComplexity / 556;
nnue -= nnue * nnueComplexity / 9359;
optimism += optimism * nnueComplexity / 464;
nnue -= nnue * nnueComplexity / 10662;

int mm = pos.major_material() / 43;
int v = (nnue * (480 + mm) + optimism * (107 + mm)) / 483;
int v = (nnue * (426 + mm) + optimism * (81 + mm)) / 503;

// Damp down the evaluation linearly when shuffling
v -= (v * pos.rule60_count()) / 256;
v -= (v * pos.rule60_count()) / 267;

// Guarantee evaluation does not hit the mate range
v = std::clamp(v, VALUE_MATED_IN_MAX_PLY + 1, VALUE_MATE_IN_MAX_PLY - 1);
Expand Down
Loading

0 comments on commit a11d4af

Please sign in to comment.