]> granicus.if.org Git - liblinear/commitdiff
correct the comment on instance weights
authorcjlin <cjlin@16e7d947-dcc2-db11-b54a-0017319806e7>
Fri, 21 Aug 2009 14:04:11 +0000 (14:04 +0000)
committercjlin <cjlin@16e7d947-dcc2-db11-b54a-0017319806e7>
Fri, 21 Aug 2009 14:04:11 +0000 (14:04 +0000)
linear.cpp

index 74978c3c4238c755c94f552889ee769718990f10..bd6271c36ed55a8a6ce6e8cfbe9630940728d389 100644 (file)
@@ -923,7 +923,7 @@ static void solve_l1_l2_svc(
        feature_node *x;
 
        // To support weights for instances,
-       // replace C[y[ind]] with C[i].
+       // replace C[y[i]] with C[i].
        double C[2] = {Cn,Cp};
 
        for(i=0; i<l; i++)
@@ -1204,7 +1204,7 @@ static void solve_l1_lr(
        feature_node *x;
 
        // To support weights for instances,
-       // replace C[y[ind]] with C[i].
+       // replace C[y[i]] with C[i].
        double C[2] = {Cn,Cp};
 
        for(i=0; i<l; i++)