Skip to content

Commit

Permalink
Merge pull request VowpalWabbit#1073 from arielf/master
Browse files Browse the repository at this point in the history
A more friendly warning on csoaa bad prediction
  • Loading branch information
JohnLangford authored Aug 13, 2016
2 parents 30aa0de + b58f125 commit a2c9c79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vowpalwabbit/cost_sensitive.cc
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ void output_example(vw& all, example& ec)
min = cl.x;
}
if (chosen_loss == FLT_MAX)
cerr << "warning: csoaa predicted an invalid class" << endl;
cerr << "warning: csoaa predicted an invalid class. Are all multi-class labels in the {1..k} range?" << endl;

loss = chosen_loss - min;
}
Expand Down

0 comments on commit a2c9c79

Please sign in to comment.