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: allow reduction to control print frequency #4315

Conversation

jackgerrits
Copy link
Member

I've gone back and forth on this one, but because of things like search and audit_regressor I think we need to leave the control with the reduction to decide if it wants to print an update.

@@ -580,7 +580,10 @@ void output_example_prediction_ccb(
void print_update_ccb(VW::workspace& all, shared_data& /* sd */, const ccb_data& data, const VW::multi_ex& ec_seq,
VW::io::logger& /* unused */)
{
if (!ec_seq.empty() && !data.no_pred)
const bool should_print_driver_update =
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe throw this in SD as a default print update cadence

Copy link
Member Author

Choose a reason for hiding this comment

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

Discussed offline, will address later

@jackgerrits jackgerrits merged commit adfaf02 into VowpalWabbit:master Dec 6, 2022
@jackgerrits jackgerrits deleted the control_print_internally_to_reduction branch December 6, 2022 22:50
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