From: popo Date: Mon, 14 Feb 2011 15:31:57 +0000 (+0000) Subject: In solve_l2r_lr_dual, the if-condition "newton_iter < l/10" is replaced by "newton_it... X-Git-Tag: v180~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4ec4e4d8044c02e8ce5be0f4579025ba8d69095f;p=liblinear In solve_l2r_lr_dual, the if-condition "newton_iter < l/10" is replaced by "newton_iter <= l/10." Otherwise, the inner epsilon may never be changed for l < 10. --- diff --git a/linear.cpp b/linear.cpp index cff1188..a97b6bc 100644 --- a/linear.cpp +++ b/linear.cpp @@ -1029,7 +1029,7 @@ void solve_l2r_lr_dual(const problem *prob, double *w, double eps, double Cp, do if(Gmax < eps) break; - if(newton_iter < l/10) + if(newton_iter <= l/10) innereps = max(innereps_min, 0.1*innereps); }