alander / sofia-ml

Automatically exported from code.google.com/p/sofia-ml
0 stars 0 forks source link

lambda parameter not passed into SvmObjective correctly #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
in sofia-ml.cc

337       float objective = sofia_ml::SvmObjective(training_data,
338                                          *w,
339                                           CMD_LINE_BOOLS["--lambda"]);

Note that lambda is passed in from CMD_LINE_BOOLS not CMD_LINE_FLOATS which 
results in lambda=0. In TrainModel the correct value of lambda is used:

176   float lambda = CMD_LINE_FLOATS["--lambda"];

Original issue reported on code.google.com by ed...@ly.st on 9 May 2013 at 1:20