Giter Site home page Giter Site logo

kmeans_cluster's Introduction

kmeans_cluster Algorithm

K-means clustering algorithm computes the centroids and iterates until we it finds optimal centroid.

•First, we need to specify the number of clusters, K, need to be generated by this algorithm.

•Next, randomly select K data points and assign each data point to a cluster. In simple words,

•classify the data based on the number of data points.

•Now it will compute the cluster centroids.

•Next, keep iterating the following until we find optimal centroid which is the assignment of data points to the clusters that are not changing any more

 •First, the sum of squared distance between data points and centroids would be computed.
 
 •Now, we have to assign each data point to the cluster that is closer than other cluster (centroid).
 
 •At last compute the centroids for the clusters by taking the average of all data points of that cluster.

kmeans_cluster's People

Contributors

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