Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mark also cluster centers
  • Loading branch information
Soeren Sonnenburg committed Mar 1, 2012
1 parent e3e23dc commit adec872
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -119,6 +119,7 @@ def train_svm(self):
self.axes.plot(features[0,labels==-1], features[1,labels==-1],'bo')

for i in xrange(k):
self.axes.plot(centers[0,i],centers[1,i],'kx', markersize=20, linewidth=5)
t = numpy.linspace(0, 2*numpy.pi, 100)
self.axes.plot(radi[i]*numpy.cos(t)+centers[0,i],radi[i]*numpy.sin(t)+centers[1,i],'k-')

Expand Down

0 comments on commit adec872

Please sign in to comment.