Skip to content
Permalink
Browse files

Fix misconfiguration (#1925)

* change semantics of lambda

* force correct mtr
  • Loading branch information...
JohnLangford committed Jun 7, 2019
1 parent e9f6b18 commit 17217045e88cbeced850f4e8805021d38a93a4ce
Showing with 4 additions and 1 deletion.
  1. +4 −1 vowpalwabbit/cb_explore_adf.cc
@@ -820,7 +820,10 @@ base_learner* cb_explore_adf_setup(options_i& options, vw& all)
}

if (data->explore_type == REGCB && data->gen_cs.cb_type != CB_TYPE_MTR)
all.trace_message << "warning: bad cb_type, RegCB only supports mtr!" << std::endl;
{
all.trace_message << "warning: bad cb_type, RegCB only supports mtr; resetting to mtr." << std::endl;
options.replace("cb_type", "mtr");
}
}

multi_learner* base = as_multiline(setup_base(options, all));

0 comments on commit 1721704

Please sign in to comment.
You can’t perform that action at this time.