Skip to content

sianteesdale/KMeans

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

K-Means Clustering

Assignment for University of Liverpool COMP527

This repository includes a .py file containing a k-means clustering algorithm, a test for clustering accuracy (through precision, recall and F-score calculations) and plotting of line graphs for the accuracy scores.

The k-means clustering algorithm is implemented between lines 55-126. The clustering accuracy scores are calculated between lines 129-266. The plotting function is implemented between lines 285-300.

Running the code

In order to run the code, open the file within a compatible software (e.g. Spyder or PyCharm).

Ensure that the path (line 8) is altered to your local working directory which contains the data files 'animals', 'countries', 'fruits' and 'veggies'.

Click Run and all of the code for all questions will automatically run, as the code is set up between lines 303-352.

About

Assignment for University of Liverpool COMP527

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages