Skip to content

Commit 601c817

Browse files
committed
fix typo when calculating intercept in simplified SMO algorithm
1 parent 1ede2fe commit 601c817

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mla/svm/svm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def _train(self):
7575
b1 = (
7676
self.b
7777
- e_i
78-
- self.y[i] * (self.alpha[i] - alpha_jo) * self.K[i, i]
78+
- self.y[i] * (self.alpha[i] - alpha_io) * self.K[i, i]
7979
- self.y[j] * (self.alpha[j] - alpha_jo) * self.K[i, j]
8080
)
8181
b2 = (

0 commit comments

Comments
 (0)