Skip to content

Commit

Permalink
fixed cb_adf
Browse files Browse the repository at this point in the history
  • Loading branch information
lhoang29 committed Jan 29, 2016
1 parent d2e6bca commit 3a8e28d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vowpalwabbit/cb_adf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ void get_observed_cost(cb_adf& mydata, v_array<example*>& examples)
ld.costs = v_init<cb_class>();
int index = -1;

for (auto ec : examples)
for (auto& ec : examples)
{ if (ec->l.cb.costs.size() == 1 &&
ec->l.cb.costs[0].cost != FLT_MAX &&
ec->l.cb.costs[0].probability > 0)
Expand Down

0 comments on commit 3a8e28d

Please sign in to comment.