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: [LAS] LAS not a cb adf common reduction, fixes metrics with LAS bug #4476

Merged
merged 3 commits into from
Jan 31, 2023

Conversation

olgavrou
Copy link
Collaborator

@olgavrou olgavrou commented Jan 30, 2023

When LAS is enabled then two exploration algorithms are enabled and they both call cb_explore_adf_common's persist_metrics function which overrides the same keys

Fixed by making LAS a standalone reduction and not a cb adf common one

@olgavrou olgavrou changed the title fix: metrics with LAS fix: [LAS] metrics with LAS Jan 30, 2023
@@ -315,7 +320,7 @@ VW::LEARNER::base_learner* make_las_with_impl(VW::setup_base_i& stack_builder, V
.set_output_example_prediction(explore_type::output_example_prediction)
.set_update_stats(explore_type::update_stats)
.set_print_update(explore_type::print_update)
.set_persist_metrics(explore_type::persist_metrics)
.set_persist_metrics(VW::cb_explore_adf::persist_metrics)
Copy link
Collaborator

Choose a reason for hiding this comment

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

if you remove this set, would it be equivalent to this change?

@olgavrou olgavrou changed the title fix: [LAS] metrics with LAS fix: [LAS] LAS not a cb adf common reduction, fixes metrics with LAS bug Jan 31, 2023
@olgavrou olgavrou merged commit 97f0b88 into VowpalWabbit:master Jan 31, 2023
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