]> granicus.if.org Git - liblinear/commitdiff
In solve_l2r_lr_dual, the if-condition "newton_iter < l/10" is replaced by "newton_it...
authorpopo <popo@16e7d947-dcc2-db11-b54a-0017319806e7>
Mon, 14 Feb 2011 15:31:57 +0000 (15:31 +0000)
committerpopo <popo@16e7d947-dcc2-db11-b54a-0017319806e7>
Mon, 14 Feb 2011 15:31:57 +0000 (15:31 +0000)
linear.cpp

index cff1188764b90872bcab30949d574ec7af4519f9..a97b6bcd81b00eca707bb0247230f768ea396a9d 100644 (file)
@@ -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);
 
        }