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

refactor: Remove copy label #2921

Merged

Conversation

jackgerrits
Copy link
Member

Copy label is now implemented by the copy assignment iterators, so this code is no longer needed.

@@ -107,7 +107,7 @@ void predict_or_learn(baseline& data, single_learner& base, example& ec)
init_global(data);
data.global_initialized = true;
}
VW::copy_example_metadata(/*audit=*/false, data.ec, &ec);
Copy link
Collaborator

Choose a reason for hiding this comment

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

whats the deal with audit being slowly removed

Copy link
Member Author

Choose a reason for hiding this comment

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

Well it wasn't necessary in this function. All audit is copied automatically if it exists. It may be a leftover from how this code used to work

@jackgerrits jackgerrits enabled auto-merge (squash) April 6, 2021 18:13
@jackgerrits jackgerrits merged commit 488ffa8 into VowpalWabbit:master Apr 6, 2021
@jackgerrits jackgerrits deleted the jagerrit/remove_copy_label branch April 15, 2021 12:52
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.

None yet

3 participants