SlideShare a Scribd company logo
1 of 9
Understanding K-
means Clustering
An Introduction to a Popular Unsupervised Learning Algorithm
by anupama
Iteration in K-means Clustering
In each iteration of the K-means algorithm, data points are assigned to the nearest centroid, and the centroids
are updated based on the assigned points. This iterative process continues until convergence, where the
clusters become more refined. Convergence criteria and stopping conditions, such as a maximum number of
iterations or a minimum change in centroids, ensure that the algorithm stops when the clusters have reached
stability.
Introduction to Clustering
What is Clustering?
Clustering is a technique used
to group similar data points
together based on certain
features or attributes. It's a
fundamental concept in
unsupervised learning and
plays a crucial role in identifying
patterns within datasets.
Purpose of Grouping Data
The main purpose of clustering
is to discover inherent
structures within the data,
helping to organize and
understand complex datasets.
By identifying similarities
among data points, clustering
can provide valuable insights
for various applications.
What is K-means Clustering?
1 Definition
K-means clustering is a popular unsupervised learning algorithm used for partitioning data into
K clusters. It aims to minimize the variance within each cluster and is particularly useful for
large datasets or data exploration.
2 Unsupervised Learning
As an unsupervised learning algorithm, K-means clustering does not require labeled output or
target variables. It automatically identifies patterns in the input data and assigns data points to
clusters without external guidance.
How Does K-means Work?
Initialization
K-means clustering begins by
randomly selecting K centroids,
which serve as the initial cluster
centers. These centroids are
crucial for the subsequent steps
of the algorithm.
Assignment & Update
Once the centroids are
initialized, the algorithm iterates
through an assignment step,
where each data point is
assigned to the nearest
centroid, and an update step,
where the centroids are
recalculated based on the
mean of the data points within
each cluster.
Iteration
The assignment and update
steps are repeated iteratively
until convergence, refining the
clusters with each iteration.
Convergence is achieved when
the centroids no longer change
significantly.
Example Dataset
1 Characteristics of Dataset
The example dataset consists of various data points represented with (x, y) coordinates on a 2-
dimensional graph. It exhibits different patterns and groupings, making it suitable for application of the
K-means clustering algorithm.
Step 1 - Initialization
Random Centroid Selection
The first step in K-means clustering involves the random selection of K initial
centroids, visually represented as red dots on the graph. These centroids
serve as the starting points for the clustering process.
Step 2 - Assignment
Assigning Data Points
Data points are assigned to the nearest centroids, forming distinct clusters based on their proximity to the
centroids. This step effectively groups the data points based on similarity to the centroid.
Step 3 - Update Centroids
Recalculating Centroids
After assigning data points to clusters, the centroids are recalculated based on the mean of the data points
within each cluster. This process involves shifting the centroids to new positions, optimizing the cluster
centres.

More Related Content

Similar to Unsupervised Machine Learning Algorithm K-means-Clustering.pptx

K MEANS CLUSTERING
K MEANS CLUSTERINGK MEANS CLUSTERING
K MEANS CLUSTERINGsingh7599
 
An improvement in k mean clustering algorithm using better time and accuracy
An improvement in k mean clustering algorithm using better time and accuracyAn improvement in k mean clustering algorithm using better time and accuracy
An improvement in k mean clustering algorithm using better time and accuracyijpla
 
Mine Blood Donors Information through Improved K-Means Clustering
Mine Blood Donors Information through Improved K-Means ClusteringMine Blood Donors Information through Improved K-Means Clustering
Mine Blood Donors Information through Improved K-Means Clusteringijcsity
 
K Means Clustering Algorithm for Partitioning Data Sets Evaluated From Horizo...
K Means Clustering Algorithm for Partitioning Data Sets Evaluated From Horizo...K Means Clustering Algorithm for Partitioning Data Sets Evaluated From Horizo...
K Means Clustering Algorithm for Partitioning Data Sets Evaluated From Horizo...IOSR Journals
 
Enhanced Clustering Algorithm for Processing Online Data
Enhanced Clustering Algorithm for Processing Online DataEnhanced Clustering Algorithm for Processing Online Data
Enhanced Clustering Algorithm for Processing Online DataIOSR Journals
 
CLUSTERING IN DATA MINING.pdf
CLUSTERING IN DATA MINING.pdfCLUSTERING IN DATA MINING.pdf
CLUSTERING IN DATA MINING.pdfSowmyaJyothi3
 
15857 cse422 unsupervised-learning
15857 cse422 unsupervised-learning15857 cse422 unsupervised-learning
15857 cse422 unsupervised-learningAnil Yadav
 
image_classification.pptx
image_classification.pptximage_classification.pptx
image_classification.pptxtayyaba977749
 
CSA 3702 machine learning module 3
CSA 3702 machine learning module 3CSA 3702 machine learning module 3
CSA 3702 machine learning module 3Nandhini S
 
Ensemble based Distributed K-Modes Clustering
Ensemble based Distributed K-Modes ClusteringEnsemble based Distributed K-Modes Clustering
Ensemble based Distributed K-Modes ClusteringIJERD Editor
 
Cancer data partitioning with data structure and difficulty independent clust...
Cancer data partitioning with data structure and difficulty independent clust...Cancer data partitioning with data structure and difficulty independent clust...
Cancer data partitioning with data structure and difficulty independent clust...IRJET Journal
 
A Comparative Study Of Various Clustering Algorithms In Data Mining
A Comparative Study Of Various Clustering Algorithms In Data MiningA Comparative Study Of Various Clustering Algorithms In Data Mining
A Comparative Study Of Various Clustering Algorithms In Data MiningNatasha Grant
 
Comparison Between Clustering Algorithms for Microarray Data Analysis
Comparison Between Clustering Algorithms for Microarray Data AnalysisComparison Between Clustering Algorithms for Microarray Data Analysis
Comparison Between Clustering Algorithms for Microarray Data AnalysisIOSR Journals
 
K means Clustering - algorithm to cluster n objects
K means Clustering - algorithm to cluster n objectsK means Clustering - algorithm to cluster n objects
K means Clustering - algorithm to cluster n objectsVoidVampire
 
84cc04ff77007e457df6aa2b814d2346bf1b
84cc04ff77007e457df6aa2b814d2346bf1b84cc04ff77007e457df6aa2b814d2346bf1b
84cc04ff77007e457df6aa2b814d2346bf1bPRAWEEN KUMAR
 

Similar to Unsupervised Machine Learning Algorithm K-means-Clustering.pptx (20)

K MEANS CLUSTERING
K MEANS CLUSTERINGK MEANS CLUSTERING
K MEANS CLUSTERING
 
An improvement in k mean clustering algorithm using better time and accuracy
An improvement in k mean clustering algorithm using better time and accuracyAn improvement in k mean clustering algorithm using better time and accuracy
An improvement in k mean clustering algorithm using better time and accuracy
 
Mine Blood Donors Information through Improved K-Means Clustering
Mine Blood Donors Information through Improved K-Means ClusteringMine Blood Donors Information through Improved K-Means Clustering
Mine Blood Donors Information through Improved K-Means Clustering
 
K Means Clustering Algorithm for Partitioning Data Sets Evaluated From Horizo...
K Means Clustering Algorithm for Partitioning Data Sets Evaluated From Horizo...K Means Clustering Algorithm for Partitioning Data Sets Evaluated From Horizo...
K Means Clustering Algorithm for Partitioning Data Sets Evaluated From Horizo...
 
Enhanced Clustering Algorithm for Processing Online Data
Enhanced Clustering Algorithm for Processing Online DataEnhanced Clustering Algorithm for Processing Online Data
Enhanced Clustering Algorithm for Processing Online Data
 
47 292-298
47 292-29847 292-298
47 292-298
 
CLUSTERING IN DATA MINING.pdf
CLUSTERING IN DATA MINING.pdfCLUSTERING IN DATA MINING.pdf
CLUSTERING IN DATA MINING.pdf
 
50120140505013
5012014050501350120140505013
50120140505013
 
15857 cse422 unsupervised-learning
15857 cse422 unsupervised-learning15857 cse422 unsupervised-learning
15857 cse422 unsupervised-learning
 
Presentation on K-Means Clustering
Presentation on K-Means ClusteringPresentation on K-Means Clustering
Presentation on K-Means Clustering
 
image_classification.pptx
image_classification.pptximage_classification.pptx
image_classification.pptx
 
CSA 3702 machine learning module 3
CSA 3702 machine learning module 3CSA 3702 machine learning module 3
CSA 3702 machine learning module 3
 
Ensemble based Distributed K-Modes Clustering
Ensemble based Distributed K-Modes ClusteringEnsemble based Distributed K-Modes Clustering
Ensemble based Distributed K-Modes Clustering
 
Cancer data partitioning with data structure and difficulty independent clust...
Cancer data partitioning with data structure and difficulty independent clust...Cancer data partitioning with data structure and difficulty independent clust...
Cancer data partitioning with data structure and difficulty independent clust...
 
A Comparative Study Of Various Clustering Algorithms In Data Mining
A Comparative Study Of Various Clustering Algorithms In Data MiningA Comparative Study Of Various Clustering Algorithms In Data Mining
A Comparative Study Of Various Clustering Algorithms In Data Mining
 
Chapter 5.pdf
Chapter 5.pdfChapter 5.pdf
Chapter 5.pdf
 
Comparison Between Clustering Algorithms for Microarray Data Analysis
Comparison Between Clustering Algorithms for Microarray Data AnalysisComparison Between Clustering Algorithms for Microarray Data Analysis
Comparison Between Clustering Algorithms for Microarray Data Analysis
 
K means Clustering - algorithm to cluster n objects
K means Clustering - algorithm to cluster n objectsK means Clustering - algorithm to cluster n objects
K means Clustering - algorithm to cluster n objects
 
84cc04ff77007e457df6aa2b814d2346bf1b
84cc04ff77007e457df6aa2b814d2346bf1b84cc04ff77007e457df6aa2b814d2346bf1b
84cc04ff77007e457df6aa2b814d2346bf1b
 
41 125-1-pb
41 125-1-pb41 125-1-pb
41 125-1-pb
 

More from Anupama Kate

100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptxAnupama Kate
 
100-Concepts-of-AI By Anupama Kate .pptx
100-Concepts-of-AI By Anupama Kate .pptx100-Concepts-of-AI By Anupama Kate .pptx
100-Concepts-of-AI By Anupama Kate .pptxAnupama Kate
 
100-Concepts-of-AI with Anupama Kate .pptx
100-Concepts-of-AI with Anupama Kate .pptx100-Concepts-of-AI with Anupama Kate .pptx
100-Concepts-of-AI with Anupama Kate .pptxAnupama Kate
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptxAnupama Kate
 
Storytelling_in_Business_Branding_Presentation_AnupamaKate.pptx
Storytelling_in_Business_Branding_Presentation_AnupamaKate.pptxStorytelling_in_Business_Branding_Presentation_AnupamaKate.pptx
Storytelling_in_Business_Branding_Presentation_AnupamaKate.pptxAnupama Kate
 
Introduction-to-Power-Pivot-in-Excel.pptx
Introduction-to-Power-Pivot-in-Excel.pptxIntroduction-to-Power-Pivot-in-Excel.pptx
Introduction-to-Power-Pivot-in-Excel.pptxAnupama Kate
 
ORM-Object-Relational-Mapping-in-Salesforce-A-Comprehensive-Overview.pptx
ORM-Object-Relational-Mapping-in-Salesforce-A-Comprehensive-Overview.pptxORM-Object-Relational-Mapping-in-Salesforce-A-Comprehensive-Overview.pptx
ORM-Object-Relational-Mapping-in-Salesforce-A-Comprehensive-Overview.pptxAnupama Kate
 
Mastering-Salesforce-Development-A-Comprehensive-Overview (1).pptx
Mastering-Salesforce-Development-A-Comprehensive-Overview (1).pptxMastering-Salesforce-Development-A-Comprehensive-Overview (1).pptx
Mastering-Salesforce-Development-A-Comprehensive-Overview (1).pptxAnupama Kate
 
Unlocking-the-Power-of-Salesforce-CRM-A-Comprehensive-Guide.pptx
Unlocking-the-Power-of-Salesforce-CRM-A-Comprehensive-Guide.pptxUnlocking-the-Power-of-Salesforce-CRM-A-Comprehensive-Guide.pptx
Unlocking-the-Power-of-Salesforce-CRM-A-Comprehensive-Guide.pptxAnupama Kate
 
what is Random-Forest-Machine-Learning.pptx
what is Random-Forest-Machine-Learning.pptxwhat is Random-Forest-Machine-Learning.pptx
what is Random-Forest-Machine-Learning.pptxAnupama Kate
 
group1-healthcareanalysisproject-230619115811-470ff613.pptx
group1-healthcareanalysisproject-230619115811-470ff613.pptxgroup1-healthcareanalysisproject-230619115811-470ff613.pptx
group1-healthcareanalysisproject-230619115811-470ff613.pptxAnupama Kate
 
p-245 customer personality.pptx
p-245 customer personality.pptxp-245 customer personality.pptx
p-245 customer personality.pptxAnupama Kate
 
P211 Group 1 Amazon Beauty Products Recommendation.pptx
P211 Group 1 Amazon Beauty Products Recommendation.pptxP211 Group 1 Amazon Beauty Products Recommendation.pptx
P211 Group 1 Amazon Beauty Products Recommendation.pptxAnupama Kate
 
Patients Condition Classification Using Drug Reviews.pptx
Patients Condition Classification Using Drug Reviews.pptxPatients Condition Classification Using Drug Reviews.pptx
Patients Condition Classification Using Drug Reviews.pptxAnupama Kate
 
Natural and manmade Disaster.pptx
Natural and manmade Disaster.pptxNatural and manmade Disaster.pptx
Natural and manmade Disaster.pptxAnupama Kate
 
Mining and Nuclear disaster.pptx
Mining and Nuclear disaster.pptxMining and Nuclear disaster.pptx
Mining and Nuclear disaster.pptxAnupama Kate
 
Non Linear Dynamics Basics and Theory
Non Linear Dynamics Basics and TheoryNon Linear Dynamics Basics and Theory
Non Linear Dynamics Basics and TheoryAnupama Kate
 
Time Series Forecasting Project Presentation.
Time Series Forecasting Project  Presentation.Time Series Forecasting Project  Presentation.
Time Series Forecasting Project Presentation.Anupama Kate
 
Environmental Issues
Environmental IssuesEnvironmental Issues
Environmental IssuesAnupama Kate
 
Green house gas effect & Global worming
Green house gas effect & Global worming Green house gas effect & Global worming
Green house gas effect & Global worming Anupama Kate
 

More from Anupama Kate (20)

100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 
100-Concepts-of-AI By Anupama Kate .pptx
100-Concepts-of-AI By Anupama Kate .pptx100-Concepts-of-AI By Anupama Kate .pptx
100-Concepts-of-AI By Anupama Kate .pptx
 
100-Concepts-of-AI with Anupama Kate .pptx
100-Concepts-of-AI with Anupama Kate .pptx100-Concepts-of-AI with Anupama Kate .pptx
100-Concepts-of-AI with Anupama Kate .pptx
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 
Storytelling_in_Business_Branding_Presentation_AnupamaKate.pptx
Storytelling_in_Business_Branding_Presentation_AnupamaKate.pptxStorytelling_in_Business_Branding_Presentation_AnupamaKate.pptx
Storytelling_in_Business_Branding_Presentation_AnupamaKate.pptx
 
Introduction-to-Power-Pivot-in-Excel.pptx
Introduction-to-Power-Pivot-in-Excel.pptxIntroduction-to-Power-Pivot-in-Excel.pptx
Introduction-to-Power-Pivot-in-Excel.pptx
 
ORM-Object-Relational-Mapping-in-Salesforce-A-Comprehensive-Overview.pptx
ORM-Object-Relational-Mapping-in-Salesforce-A-Comprehensive-Overview.pptxORM-Object-Relational-Mapping-in-Salesforce-A-Comprehensive-Overview.pptx
ORM-Object-Relational-Mapping-in-Salesforce-A-Comprehensive-Overview.pptx
 
Mastering-Salesforce-Development-A-Comprehensive-Overview (1).pptx
Mastering-Salesforce-Development-A-Comprehensive-Overview (1).pptxMastering-Salesforce-Development-A-Comprehensive-Overview (1).pptx
Mastering-Salesforce-Development-A-Comprehensive-Overview (1).pptx
 
Unlocking-the-Power-of-Salesforce-CRM-A-Comprehensive-Guide.pptx
Unlocking-the-Power-of-Salesforce-CRM-A-Comprehensive-Guide.pptxUnlocking-the-Power-of-Salesforce-CRM-A-Comprehensive-Guide.pptx
Unlocking-the-Power-of-Salesforce-CRM-A-Comprehensive-Guide.pptx
 
what is Random-Forest-Machine-Learning.pptx
what is Random-Forest-Machine-Learning.pptxwhat is Random-Forest-Machine-Learning.pptx
what is Random-Forest-Machine-Learning.pptx
 
group1-healthcareanalysisproject-230619115811-470ff613.pptx
group1-healthcareanalysisproject-230619115811-470ff613.pptxgroup1-healthcareanalysisproject-230619115811-470ff613.pptx
group1-healthcareanalysisproject-230619115811-470ff613.pptx
 
p-245 customer personality.pptx
p-245 customer personality.pptxp-245 customer personality.pptx
p-245 customer personality.pptx
 
P211 Group 1 Amazon Beauty Products Recommendation.pptx
P211 Group 1 Amazon Beauty Products Recommendation.pptxP211 Group 1 Amazon Beauty Products Recommendation.pptx
P211 Group 1 Amazon Beauty Products Recommendation.pptx
 
Patients Condition Classification Using Drug Reviews.pptx
Patients Condition Classification Using Drug Reviews.pptxPatients Condition Classification Using Drug Reviews.pptx
Patients Condition Classification Using Drug Reviews.pptx
 
Natural and manmade Disaster.pptx
Natural and manmade Disaster.pptxNatural and manmade Disaster.pptx
Natural and manmade Disaster.pptx
 
Mining and Nuclear disaster.pptx
Mining and Nuclear disaster.pptxMining and Nuclear disaster.pptx
Mining and Nuclear disaster.pptx
 
Non Linear Dynamics Basics and Theory
Non Linear Dynamics Basics and TheoryNon Linear Dynamics Basics and Theory
Non Linear Dynamics Basics and Theory
 
Time Series Forecasting Project Presentation.
Time Series Forecasting Project  Presentation.Time Series Forecasting Project  Presentation.
Time Series Forecasting Project Presentation.
 
Environmental Issues
Environmental IssuesEnvironmental Issues
Environmental Issues
 
Green house gas effect & Global worming
Green house gas effect & Global worming Green house gas effect & Global worming
Green house gas effect & Global worming
 

Recently uploaded

PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPramod Kumar Srivastava
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改atducpo
 
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024thyngster
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...Suhani Kapoor
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubaihf8803863
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsappssapnasaifi408
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...soniya singh
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdfHuman37
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceSapana Sha
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfDBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfJohn Sterrett
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...Suhani Kapoor
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...Florian Roscheck
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Sapana Sha
 

Recently uploaded (20)

E-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptxE-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptx
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
 
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
 
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts Service
 
Call Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort ServiceCall Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort Service
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfDBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdf
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
 

Unsupervised Machine Learning Algorithm K-means-Clustering.pptx

  • 1. Understanding K- means Clustering An Introduction to a Popular Unsupervised Learning Algorithm by anupama
  • 2. Iteration in K-means Clustering In each iteration of the K-means algorithm, data points are assigned to the nearest centroid, and the centroids are updated based on the assigned points. This iterative process continues until convergence, where the clusters become more refined. Convergence criteria and stopping conditions, such as a maximum number of iterations or a minimum change in centroids, ensure that the algorithm stops when the clusters have reached stability.
  • 3. Introduction to Clustering What is Clustering? Clustering is a technique used to group similar data points together based on certain features or attributes. It's a fundamental concept in unsupervised learning and plays a crucial role in identifying patterns within datasets. Purpose of Grouping Data The main purpose of clustering is to discover inherent structures within the data, helping to organize and understand complex datasets. By identifying similarities among data points, clustering can provide valuable insights for various applications.
  • 4. What is K-means Clustering? 1 Definition K-means clustering is a popular unsupervised learning algorithm used for partitioning data into K clusters. It aims to minimize the variance within each cluster and is particularly useful for large datasets or data exploration. 2 Unsupervised Learning As an unsupervised learning algorithm, K-means clustering does not require labeled output or target variables. It automatically identifies patterns in the input data and assigns data points to clusters without external guidance.
  • 5. How Does K-means Work? Initialization K-means clustering begins by randomly selecting K centroids, which serve as the initial cluster centers. These centroids are crucial for the subsequent steps of the algorithm. Assignment & Update Once the centroids are initialized, the algorithm iterates through an assignment step, where each data point is assigned to the nearest centroid, and an update step, where the centroids are recalculated based on the mean of the data points within each cluster. Iteration The assignment and update steps are repeated iteratively until convergence, refining the clusters with each iteration. Convergence is achieved when the centroids no longer change significantly.
  • 6. Example Dataset 1 Characteristics of Dataset The example dataset consists of various data points represented with (x, y) coordinates on a 2- dimensional graph. It exhibits different patterns and groupings, making it suitable for application of the K-means clustering algorithm.
  • 7. Step 1 - Initialization Random Centroid Selection The first step in K-means clustering involves the random selection of K initial centroids, visually represented as red dots on the graph. These centroids serve as the starting points for the clustering process.
  • 8. Step 2 - Assignment Assigning Data Points Data points are assigned to the nearest centroids, forming distinct clusters based on their proximity to the centroids. This step effectively groups the data points based on similarity to the centroid.
  • 9. Step 3 - Update Centroids Recalculating Centroids After assigning data points to clusters, the centroids are recalculated based on the mean of the data points within each cluster. This process involves shifting the centroids to new positions, optimizing the cluster centres.