kmeans-clustering
Perform K-Means Clustering and plot
To run:
From the root directory:
python Kmeans.py
It will ask you for the number of clusters you want to fit to.
> How many clusters would you like to show? (1 - 5):
Enter a value from 1 to 5.
If sucessful, you should get a message like:
The K-means classifer has converged after 6 trials
A number of png files will appear in the root directory. If you'd like a animation of these, assuming you have ImageMagick installed. Type the following command, making sure to alter the first number in the file to be your chosen class number which should be a number from 1 - 5.
convert 2_kmeans_plot* anim.gif