Skip to content

Commit

Permalink
70%/30% big/small split
Browse files Browse the repository at this point in the history
bench: 1270727
  • Loading branch information
mstembera committed Dec 10, 2023
1 parent 28a4655 commit 00eb409
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions src/evaluate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,8 @@ Value Eval::evaluate(const Position& pos) {
v = Value(simpleEval);
else
{
int accBias = pos.state()->accumulatorBig.computed[0]
+ pos.state()->accumulatorBig.computed[1]
- pos.state()->accumulatorSmall.computed[0]
- pos.state()->accumulatorSmall.computed[1];

int nnueComplexity;
bool smallNet = abs(simpleEval) > lazyThreshold * (90 + accBias) / 100;
bool smallNet = abs(simpleEval) > lazyThreshold * 70 / 100;

Value nnue = smallNet ? NNUE::evaluate<true>(pos, true, &nnueComplexity)
: NNUE::evaluate<false>(pos, true, &nnueComplexity);
Expand Down
2 changes: 1 addition & 1 deletion src/nnue/evaluate_nnue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ static bool write_parameters(std::ostream& stream, bool small) {
void hint_common_parent_position(const Position& pos) {

int simpleEval = pos.simple_eval();
if (abs(simpleEval) < 2500)
if (abs(simpleEval) < 1400)
featureTransformerBig->hint_common_access(pos);
else
featureTransformerSmall->hint_common_access(pos);
Expand Down

0 comments on commit 00eb409

Please sign in to comment.