Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SmirkCao committed Apr 1, 2020
1 parent 598eaa3 commit fc3d2c1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
Binary file removed CH02/assets/XOR_3D.gif
Binary file not shown.
2 changes: 1 addition & 1 deletion CH07/svm.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def _do_smo(self, X, y):
b2 = self.b - ej - y[i] * (self.alpha[i] - alphaiold) * np.dot(X[i, :], X[j, :]) - \
y[j] * (self.alpha[j] - alphajold) * np.dot(X[j, :], X[j, :])

if (0 < self.alpha[i]) and (self.C > self.alpha[j]):
if (0 < self.alpha[i]) and (self.C > self.alpha[i]):
self.b = b1
elif (0 < self.alpha[j]) and (self.C > self.alpha[j]):
self.b = b2
Expand Down
Binary file removed math_markdown.pdf
Binary file not shown.

0 comments on commit fc3d2c1

Please sign in to comment.