Skip to content

alichtner/kmeans-clustering

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

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

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages