Git Product home page Git Product logo

k-means-clustering-python's Introduction

K-Means Clustering implemented using Python

Test script that performs K-Means clustering of given data set using Python without using frameworks

Dependencies:

  • Python modules: numpy, random, pandas, time
  • Python version: 3.7.4

Inputs required:

  • data_set: Input data set in given format as demonstrated in the code
  • k_value: No of clusters needed
  • precision: The precision with which calculations have to be made

Files

KMeansClustering.py is a single script which runs the clustering
Clustering.py is the same script written as a class and can be called with from Clustering import KMeans
test.py is an implementation of the algorithm using the class on the Iris Dataset

Further improvements:

  • Code is slow for huge data sets. Need to optimize.
  • Need to compare with same data set run on frame work such scikitlearn and compare the results

k-means-clustering-python's People

Contributors

ppai22 avatar

Stargazers

 avatar

Watchers

 avatar  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.