Skip to content

Commit

Permalink
forgotten space
Browse files Browse the repository at this point in the history
  • Loading branch information
ataymano committed Mar 7, 2024
1 parent 1402575 commit ffd7d43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vowpalwabbit/core/src/reductions/active.cc
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ float query_decision(const active& a, float updates_to_change_prediction, float
// const auto weighted_queries = static_cast<float>(a._shared_data->weighted_labeled_examples);
const float avg_loss = (static_cast<float>(a._shared_data->sum_loss) / example_count);
//+ std::sqrt((1.f + 0.5f * std::log(example_count)) / (weighted_queries + 0.0001f)); Commented this out, not
//following why we need it from the theory.
// following why we need it from the theory.
// std::cout << "avg_loss = " << avg_loss << " weighted_queries = " << weighted_queries << " sum_loss = " <<
// a._shared_data->sum_loss << " example_count = " << example_count << std::endl;
bias = get_active_coin_bias(example_count, avg_loss, updates_to_change_prediction / example_count, a.active_c0);
Expand Down

0 comments on commit ffd7d43

Please sign in to comment.