Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Langford <jl@hunch.net>2011-07-19 11:44:35 +0400
committerJohn Langford <jl@hunch.net>2011-07-19 11:44:35 +0400
commitd9ed065e70a59ff3b0ac3d9fb49588b1b6a79fe6 (patch)
tree32a0cd74ecb325b19bedbb96b82f096027164599 /parse_args.cc
parent8f15851e1f6bc976afdd88a68d9446539162cd61 (diff)
explicit cast to avoid compile bug on macs
Diffstat (limited to 'parse_args.cc')
-rw-r--r--parse_args.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse_args.cc b/parse_args.cc
index 2c825fc8..c5fe86e5 100644
--- a/parse_args.cc
+++ b/parse_args.cc
@@ -389,9 +389,9 @@ po::variables_map parse_args(int argc, char *argv[], boost::program_options::opt
if (global.eta_decay_rate != default_decay && global.numpasses == 1)
cerr << "Warning: decay_learning_rate has no effect when there is only one pass" << endl;
- if (pow(global.eta_decay_rate, global.numpasses) < 0.0001 )
+ if (pow((double)global.eta_decay_rate, (double)global.numpasses) < 0.0001 )
cerr << "Warning: the learning rate for the last pass is multiplied by: " << pow(global.eta_decay_rate, global.numpasses)
- << " adjust to --decay_learning_rate larger to avoid this." << endl;
+ << " adjust --decay_learning_rate larger to avoid this." << endl;
//parse_source_args(vm,par,global.quiet,global.numpasses);