alexhock / sofia-ml

Automatically exported from code.google.com/p/sofia-ml

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lambda parameter not passed into SvmObjective correctly

GoogleCodeExporter opened this issue · comments

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