SlideShare a Scribd company logo
5
Most read
6
Most read
13
Most read
K-means Clustering
Clustering Algorithm:
Supervised Learning:
Training set:
{(𝑋11, 𝑋21 , 𝑅𝐸𝐷), (𝑋12, 𝑋22, 𝐵𝐿𝑈𝐸),
(𝑋13, 𝑋23, 𝑅𝐸𝐷),
(𝑋14
, 𝑋24
, 𝐵𝐿𝑈𝐸),
……………
(𝑋1 𝑚, 𝑋2 𝑚, 𝑅𝐸𝐷)}
Clustering Algorithm:
Unsupervised Learning:
Training set:
{𝑋1, 𝑋2 , 𝑋3 ,……, 𝑋 𝑚 }
Where, X={𝑥1, 𝑥2}
Clustering Algorithm:
K-means algorithm:
K-means Clustering
K-means Clustering
K-means Clustering
K-means Clustering
K-means Clustering
K-means Clustering
K-means Clustering
K-means Clustering
K-means algorithm:
Input:
-K (number of clusters)
-Training set{𝑋1, 𝑋2 , 𝑋3 ,……, 𝑋 𝑚 }Where, X={𝑥1, 𝑥2}
Randomly initialize K cluster centroids μ1, μ2, … . . , μ 𝑘 ; k<m
Repeat {
for i= 1 to m:
𝐶 𝑖 ∶= index(1 to K) of cluster centroids close to 𝑋 𝑖
for k= 1 to K:
μ 𝑘 := average(mean) of points assigned to cluster k
Cluster
Assignment
Step
Move
Centroids
Step
K means for non-separated cluster:
K means for non-separated cluster:
What is the right value of k?
Elbow Method
Lets play with real dataset!!

More Related Content

PPTX
Resnet.pptx
PPTX
K Means Clustering Algorithm | K Means Clustering Example | Machine Learning ...
PPTX
Autoencoders in Deep Learning
PPTX
Optimization/Gradient Descent
PPTX
Multilayer & Back propagation algorithm
PDF
Support Vector Machines for Classification
PPTX
Support vector machine
PDF
Dimensionality Reduction
Resnet.pptx
K Means Clustering Algorithm | K Means Clustering Example | Machine Learning ...
Autoencoders in Deep Learning
Optimization/Gradient Descent
Multilayer & Back propagation algorithm
Support Vector Machines for Classification
Support vector machine
Dimensionality Reduction

What's hot (20)

PPTX
Gradient descent method
PDF
Gradient descent method
PPTX
Random forest algorithm
PPT
2.4 rule based classification
PPTX
Backpropagation And Gradient Descent In Neural Networks | Neural Network Tuto...
PDF
Autoencoders
PPTX
Introduction to Linear Discriminant Analysis
PPTX
Support vector machines (svm)
PPTX
PPTX
Unsupervised learning clustering
PPT
Randomized algorithms ver 1.0
PDF
ResNet basics (Deep Residual Network for Image Recognition)
PDF
Introduction to Autoencoders
PDF
Computer Vision: Correlation, Convolution, and Gradient
PPTX
Presentation on K-Means Clustering
PPTX
03 Single layer Perception Classifier
PPTX
Image filtering in Digital image processing
PDF
Hierarchical clustering
PPTX
The n Queen Problem
Gradient descent method
Gradient descent method
Random forest algorithm
2.4 rule based classification
Backpropagation And Gradient Descent In Neural Networks | Neural Network Tuto...
Autoencoders
Introduction to Linear Discriminant Analysis
Support vector machines (svm)
Unsupervised learning clustering
Randomized algorithms ver 1.0
ResNet basics (Deep Residual Network for Image Recognition)
Introduction to Autoencoders
Computer Vision: Correlation, Convolution, and Gradient
Presentation on K-Means Clustering
03 Single layer Perception Classifier
Image filtering in Digital image processing
Hierarchical clustering
The n Queen Problem
Ad

Similar to K-means Clustering (20)

PPTX
Scalable k-means plus plus
PDF
Kmeans with canopy clustering
PPTX
Learning a nonlinear embedding by preserving class neibourhood structure 최종
PDF
Clustering:k-means, expect-maximization and gaussian mixture model
PPT
Enhance The K Means Algorithm On Spatial Dataset
PDF
MASSS_Presentation_20160209
PDF
Cheatsheet unsupervised-learning
PPTX
Applied Algorithms and Structures week999
PPTX
K Means Clustering in ML.pptx
PPTX
Principal Component Analysis (PCA) .
PDF
Semi-Supervised Regression using Cluster Ensemble
PPTX
K-means Clustering || Data Mining
PDF
Clustering and Factorization using Apache SystemML by Alexandre V Evfimievski
PDF
Clustering and Factorization using Apache SystemML by Alexandre V Evfimievski
PDF
5 DimensionalityReduction.pdf
PDF
20 k-means, k-center, k-meoids and variations
PPTX
Seminar9
PDF
Information-theoretic clustering with applications
PPT
Lect4
Scalable k-means plus plus
Kmeans with canopy clustering
Learning a nonlinear embedding by preserving class neibourhood structure 최종
Clustering:k-means, expect-maximization and gaussian mixture model
Enhance The K Means Algorithm On Spatial Dataset
MASSS_Presentation_20160209
Cheatsheet unsupervised-learning
Applied Algorithms and Structures week999
K Means Clustering in ML.pptx
Principal Component Analysis (PCA) .
Semi-Supervised Regression using Cluster Ensemble
K-means Clustering || Data Mining
Clustering and Factorization using Apache SystemML by Alexandre V Evfimievski
Clustering and Factorization using Apache SystemML by Alexandre V Evfimievski
5 DimensionalityReduction.pdf
20 k-means, k-center, k-meoids and variations
Seminar9
Information-theoretic clustering with applications
Lect4
Ad

More from Sajib Sen (12)

PPTX
An empirical study on algorithmic bias
PPTX
Battery Less Solar Power Controller to Drive Load at Constant Power Irrespect...
PPTX
PMCN 2017- workshop presentation(Instrumentation for Detecting Cervical Cance...
PPTX
Equifax data breach
PPTX
Weka tutorial
PPTX
A Crowdsourcing Review Technique to Prevent Spreading Fake News
PPTX
Image Recognition with Neural Network
PPTX
Machine Learning Landscape
PPTX
Raspberry-Pi GPIO
PPTX
An Updated Survey on Niching Methods and Their Applications
PPTX
Binary classification with logistic regression algorithm using hadoop
PPTX
Leveraging Machine Learning Approach to Setup Software Defined Network(SDN) C...
An empirical study on algorithmic bias
Battery Less Solar Power Controller to Drive Load at Constant Power Irrespect...
PMCN 2017- workshop presentation(Instrumentation for Detecting Cervical Cance...
Equifax data breach
Weka tutorial
A Crowdsourcing Review Technique to Prevent Spreading Fake News
Image Recognition with Neural Network
Machine Learning Landscape
Raspberry-Pi GPIO
An Updated Survey on Niching Methods and Their Applications
Binary classification with logistic regression algorithm using hadoop
Leveraging Machine Learning Approach to Setup Software Defined Network(SDN) C...

Recently uploaded (20)

PPT
Project quality management in manufacturing
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
Geodesy 1.pptx...............................................
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
Internet of Things (IOT) - A guide to understanding
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
Structs to JSON How Go Powers REST APIs.pdf
PPTX
Welding lecture in detail for understanding
PDF
Digital Logic Computer Design lecture notes
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
Project quality management in manufacturing
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
CH1 Production IntroductoryConcepts.pptx
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
Geodesy 1.pptx...............................................
UNIT 4 Total Quality Management .pptx
OOP with Java - Java Introduction (Basics)
CYBER-CRIMES AND SECURITY A guide to understanding
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Internet of Things (IOT) - A guide to understanding
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Strings in CPP - Strings in C++ are sequences of characters used to store and...
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Structs to JSON How Go Powers REST APIs.pdf
Welding lecture in detail for understanding
Digital Logic Computer Design lecture notes
Operating System & Kernel Study Guide-1 - converted.pdf

K-means Clustering