diff options
author | ariel faigon <github.2009@yendor.com> | 2014-01-06 00:17:13 +0400 |
---|---|---|
committer | ariel faigon <github.2009@yendor.com> | 2014-01-06 00:17:13 +0400 |
commit | 9812a78b01ea35b4d431fc777deab7a6c3420f2d (patch) | |
tree | a51209a6746574d1736d92128d07c20741934a6f /vowpalwabbit/parse_args.cc | |
parent | f4d403717e2a4b423e12130b9cda9e36444244e6 (diff) |
bugfix: initialization of dump_interval should be outside the if (...)
Diffstat (limited to 'vowpalwabbit/parse_args.cc')
-rw-r--r-- | vowpalwabbit/parse_args.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vowpalwabbit/parse_args.cc b/vowpalwabbit/parse_args.cc index 19ca93eb..253ee258 100644 --- a/vowpalwabbit/parse_args.cc +++ b/vowpalwabbit/parse_args.cc @@ -134,7 +134,7 @@ vw* parse_args(int argc, char *argv[]) ("raw_predictions,r", po::value< string >(), "File to output unnormalized predictions to") ("sendto", po::value< vector<string> >(), "send examples to <host>") ("quiet", "Don't output disgnostics and progress updates") - ("progress,P", po::value< string >()->default_value("2.0"), "Progress update frequency. int: additive, float: multiplicative") + ("progress,P", po::value< string >(), "Progress update frequency. int: additive, float: multiplicative") ("binary", "report loss as binary classification on -1,1") ("min_prediction", po::value<float>(&(all->sd->min_label)), "Smallest prediction to output") ("max_prediction", po::value<float>(&(all->sd->max_label)), "Largest prediction to output") @@ -347,8 +347,9 @@ vw* parse_args(int argc, char *argv[]) << " can't be < 1: forcing to 1\n"; all->progress_arg = 1; - all->sd->dump_interval = all->progress_arg; } + all->sd->dump_interval = all->progress_arg; + } else { // A "." in arg: assume floating-point -> multiplicative all->progress_add = false; |