Skip to content

Commit 14266db

Browse files
committed
count support vectors
1 parent 303e53f commit 14266db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

smo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def compute_alphas(self, X, y):
3838
loops = 0
3939
# main training loop
4040
while dirty or examineAll:
41-
print "on loop", loops
41+
print "on loop", loops, "num support vectors", np.shape(np.nonzero(self.alphas))[1]
4242
dirty = False
4343
if examineAll:
4444
# consider all examples

0 commit comments

Comments
 (0)