From 4ec4e4d8044c02e8ce5be0f4579025ba8d69095f Mon Sep 17 00:00:00 2001 From: popo Date: Mon, 14 Feb 2011 15:31:57 +0000 Subject: [PATCH] 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. --- linear.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.50.1