Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix training data being generated without its flag #274

Merged
merged 2 commits into from
Aug 19, 2018

Conversation

dubslow
Copy link
Member

@dubslow dubslow commented Aug 19, 2018

No description provided.

@dubslow dubslow requested review from mooskagh and Tilps August 19, 2018 13:16
GameResult::UNDECIDED, tree_[idx]->GetPositionHistory()));
if (training) {
// Append training data. The GameResult is later overwritten.
training_data_.push_back(tree_[idx]->GetCurrentHead()->GetV3TrainingData(
Copy link
Member Author

Choose a reason for hiding this comment

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

Shouldn't this be emplace_back?

Copy link
Member

Choose a reason for hiding this comment

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

It's one copy with push_back() and probably one copy with emplace_back() too (surely not less).
I don't really have a preference here actually.

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh right, forgot that the argument to push_back isn't actually a constructor call lol

@dubslow dubslow merged commit 95fcc2c into LeelaChessZero:master Aug 19, 2018
@dubslow dubslow deleted the overzealous-training-data branch August 19, 2018 14:24
borg323 pushed a commit to borg323/lc0 that referenced this pull request Sep 6, 2018
* Fix training data being generated without its flag

* Cleaner terminal node output in verbose stats
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants