]> granicus.if.org Git - liblinear/commitdiff
add a comment in l1r_lr indicating that
authorcjlin <cjlin@16e7d947-dcc2-db11-b54a-0017319806e7>
Mon, 11 Oct 2010 05:24:38 +0000 (05:24 +0000)
committercjlin <cjlin@16e7d947-dcc2-db11-b54a-0017319806e7>
Mon, 11 Oct 2010 05:24:38 +0000 (05:24 +0000)
approx line search condition works only
if xij>=0

linear.cpp

index c6f716832da80536c8ef8344839d41b347aa7094..cff1188764b90872bcab30949d574ec7af4519f9 100644 (file)
@@ -1494,6 +1494,7 @@ static void solve_l1r_lr(
                        {
                                cond = fabs(w[j]+d)-fabs(w[j]) - sigma*delta;
 
+                               // approx line search works only if xij>=0
                                if(x_min >= 0)
                                {
                                        double tmp = exp(d*xj_max[j]);