Giter Site home page Giter Site logo

zmaqutu / machine-learning-k-means-clustering Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 22 KB

This is an implimention of the K-means clustering algorithm using python

Makefile 22.89% Python 77.11%
machine-learning machine-learning-algorithms unsupervised-learning unsupervised-machine-learning kmeans-clustering clustering-algorithm

machine-learning-k-means-clustering's Introduction

Machine Learning K-Means clustering Algorithm

Table of Contents

Description

This is an implementation of the K-Means clustering algorithm written in Python. The numpy library is also used to calculate how similar data points are to each other

Project setup

To run this project clone this repository in a folder on your local machine. We first need to build our virtual environment and install a list of libraries our program needs to run. To do this, open a terminal in the root directory and run the following commands

make install       // installs program dependencies

Next we need to activate our virual environment. To do this run the following commands

source venv/bin/activate       // Activates our virtual environment

Now we can run our algorithm. Run these commands and you will see details of each cluster, centroids belonging those clusters, and the number of iterations the algorithm goes through before it converges

make runKMeans       // runs the program

To exit the virtual environment run:

deactivate       // runs the program

Libraries Used

  • Numpy

Future Scope

  • use the matplotlib to plot the points on a graph and show the clusters at each iteration
  • Add animations to move the clusters and update points

Made with ❤️ with Pycharm and vim

machine-learning-k-means-clustering's People

Contributors

zmaqutu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.