Skip to content

Commit

Permalink
Switch verbose precision when value would round up to 100. (LeelaChes…
Browse files Browse the repository at this point in the history
  • Loading branch information
Mardak authored May 14, 2020
1 parent 0d1bb0b commit 90157a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mcts/search.cc
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ std::vector<std::string> Search::GetVerboseStats(Node* node) const {
*oss << std::right;
print(oss, "N: ", n, " ", 7);
print(oss, "(+", f, ") ", 2);
print(oss, "(P: ", p * 100, "%) ", 5, p >= 1.0f ? 1 : 2);
print(oss, "(P: ", p * 100, "%) ", 5, p >= 0.99995f ? 1 : 2);
};
auto print_stats = [&](auto* oss, const auto* n) {
const auto sign = n == node ? -1 : 1;
Expand Down

0 comments on commit 90157a8

Please sign in to comment.