Skip to content

Commit

Permalink
Fixed bug in CLI parsing of --csoaa_ldf multiline (#1551)
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-rossi29 authored and JohnLangford committed Aug 2, 2018
1 parent 0510b1b commit d72a478
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vowpalwabbit/cb_adf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -383,9 +383,10 @@ base_learner* cb_adf_setup(arguments& arg)
|| ld->rank_all || arg.vm.count("csoaa_rank") == 0)
{
if (count(arg.args.begin(), arg.args.end(), "--csoaa_ldf") == 0)
{
arg.args.push_back("--csoaa_ldf");
if (count(arg.args.begin(), arg.args.end(), "multiline") == 0)
arg.args.push_back("multiline");
}
if (count(arg.args.begin(), arg.args.end(), "--csoaa_rank") == 0)
arg.args.push_back("--csoaa_rank");
}
Expand Down

0 comments on commit d72a478

Please sign in to comment.