Little change

This commit is contained in:
Eddie 2017-10-30 16:40:01 -06:00
parent a761f0b8dc
commit e286326c9a
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ for i in range(k):
# select only data observations with cluster label == i # select only data observations with cluster label == i
ds = J[np.where(labels == i)] ds = J[np.where(labels == i)]
# plot the data observations # plot the data observations
pyplot.plot(ds[:,0],ds[:,1],'o') pyplot.plot(ds[:, 0], ds[:, 1], 'o')
# plot the centroids # plot the centroids
lines = pyplot.plot(centroids[i, 0], centroids[i, 1], 'kx') lines = pyplot.plot(centroids[i, 0], centroids[i, 1], 'kx')
# make the centroid x's bigger # make the centroid x's bigger