Remove the re-search on depth 0. It is correctly handled by search now.

This commit is contained in:
Tomasz Sobczyk
2020-09-25 16:06:33 +02:00
parent b6e7733b4c
commit c99541828f

View File

@@ -875,13 +875,6 @@ namespace Learner
// Save the move score for adjudication.
move_hist_scores.push_back(search_value);
// If depth 0, pv is not obtained, so search again at depth 2.
if (search_depth_min <= 0)
{
auto [research_value, research_pv] = search(pos, 2);
search_pv = research_pv;
}
// Discard stuff before write_minply is reached
// because it can harm training due to overfitting.
// Initial positions would be too common.