We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18175fc commit 96ab0c8Copy full SHA for 96ab0c8
src/main/java/de/bwaldvogel/liblinear/Linear.java
@@ -1939,9 +1939,9 @@ else if (alpha[i] > 0 && alpha[j] < 1 && -Gi + 1e-12 < -Gj)
1939
double ub = Double.POSITIVE_INFINITY, lb = Double.NEGATIVE_INFINITY, sum_free = 0;
1940
for (i = 0; i < l; i++) {
1941
double G_ = SparseOperator.dot(w, prob.x[i]);
1942
- if (alpha[i] == 0)
+ if (alpha[i] == 1)
1943
lb = Math.max(lb, G_);
1944
- else if (alpha[i] == 1)
+ else if (alpha[i] == 0)
1945
ub = Math.min(ub, G_);
1946
else {
1947
++nr_free;
0 commit comments