The parameter `p` is only used by the L2R_L2LOSS_SVR solver so skip
checking its value unless using it. This is important because it has
no default value meaning that we are effectively forcing the user to
set it even if they don't use it.
Signed-off-by: Chih-Jen Lin <cjlin@csie.ntu.edu.tw>
if(param->C <= 0)
return "C <= 0";
- if(param->p < 0)
+ if(param->p < 0 && param->solver_type == L2R_L2LOSS_SVR)
return "p < 0";
if(prob->bias >= 0 && param->solver_type == ONECLASS_SVM)