Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

README.md

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

About

Perform K-Means Clustering and plot

Resources

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.