SlideShare a Scribd company logo
1 of 20
© SuperDataScienceDeep Learning A-Z
© SuperDataScienceDeep Learning A-Z
If we choose K = 3 clusters...
© SuperDataScienceDeep Learning A-Z
...this correct random initialisation would lead us to...
© SuperDataScienceDeep Learning A-Z
…the following three clusters
© SuperDataScienceDeep Learning A-Z
…the following three clusters
© SuperDataScienceDeep Learning A-Z
But what would happen if we had a bad random initialisation ?
© SuperDataScienceDeep Learning A-Z
STEP 1: Choose the number K of clusters
STEP 2: Select at random K points, the centroids (not necessarily from your dataset)
STEP 3: Assign each data point to the closest centroid That forms K clusters
STEP 4: Compute and place the new centroid of each cluster
STEP 5: Reassign each data point to the new closest centroid.
If any reassignment took place, go to STEP 4, otherwise go to FIN.
Your Model is Ready
© SuperDataScienceDeep Learning A-Z
STEP 1: Choose the number K of clusters: K = 3
© SuperDataScienceDeep Learning A-Z
STEP 2: Select at random K points, the centroids (not necessarily from your dataset)
© SuperDataScienceDeep Learning A-Z
STEP 2: Select at random K points, the centroids (not necessarily from your dataset)
© SuperDataScienceDeep Learning A-Z
STEP 3: Assign each data point to the closest centroid That forms K clusters
© SuperDataScienceDeep Learning A-Z
STEP 3: Assign each data point to the closest centroid That forms K clusters
© SuperDataScienceDeep Learning A-Z
STEP 4: Compute and place the new centroid of each cluster
© SuperDataScienceDeep Learning A-Z
STEP 5: Reassign each data point to the new closest centroid.
If any reassignment took place, go to STEP 4, otherwise go to FIN.
© SuperDataScienceDeep Learning A-Z
STEP 5: Reassign each data point to the new closest centroid.
If any reassignment took place, go to STEP 4, otherwise go to FIN.
Your Model is Ready
© SuperDataScienceDeep Learning A-Z
Your Model is Ready
STEP 5: Reassign each data point to the new closest centroid.
If any reassignment took place, go to STEP 4, otherwise go to FIN.
© SuperDataScienceDeep Learning A-Z
Your Model is Ready
STEP 5: Reassign each data point to the new closest centroid.
If any reassignment took place, go to STEP 4, otherwise go to FIN.
© SuperDataScienceDeep Learning A-Z
© SuperDataScienceDeep Learning A-Z
© SuperDataScienceDeep Learning A-Z
Solution K-Means++

More Related Content

Similar to Deep Learning A-Z™: Self Organizing Maps (SOM) - K-Means Clustering (part 2)

Similar to Deep Learning A-Z™: Self Organizing Maps (SOM) - K-Means Clustering (part 2) (20)

k-Means Clustering.pptx
k-Means Clustering.pptxk-Means Clustering.pptx
k-Means Clustering.pptx
 
Customer Segmentation using Clustering
Customer Segmentation using ClusteringCustomer Segmentation using Clustering
Customer Segmentation using Clustering
 
Cluster Analysis : Assignment & Update
Cluster Analysis : Assignment & UpdateCluster Analysis : Assignment & Update
Cluster Analysis : Assignment & Update
 
Data analysis of weather forecasting
Data analysis of weather forecastingData analysis of weather forecasting
Data analysis of weather forecasting
 
Machine learning algorithms
Machine learning algorithmsMachine learning algorithms
Machine learning algorithms
 
K-Nearest Neighbor(KNN)
K-Nearest Neighbor(KNN)K-Nearest Neighbor(KNN)
K-Nearest Neighbor(KNN)
 
Ml9 introduction to-unsupervised_learning_and_clustering_methods
Ml9 introduction to-unsupervised_learning_and_clustering_methodsMl9 introduction to-unsupervised_learning_and_clustering_methods
Ml9 introduction to-unsupervised_learning_and_clustering_methods
 
Musings of kaggler
Musings of kagglerMusings of kaggler
Musings of kaggler
 
AI Algorithms
AI AlgorithmsAI Algorithms
AI Algorithms
 
Kmeans
KmeansKmeans
Kmeans
 
Building Scalable, Real Time Applications for Financial Services with DataStax
Building Scalable, Real Time Applications for Financial Services with DataStaxBuilding Scalable, Real Time Applications for Financial Services with DataStax
Building Scalable, Real Time Applications for Financial Services with DataStax
 
DataStax Enterprise – Foundations for Finance – 20160419
DataStax Enterprise – Foundations for Finance – 20160419DataStax Enterprise – Foundations for Finance – 20160419
DataStax Enterprise – Foundations for Finance – 20160419
 
13 unsupervised learning clustering
13 unsupervised learning   clustering13 unsupervised learning   clustering
13 unsupervised learning clustering
 
K Means Clustering Algorithm | K Means Example in Python | Machine Learning A...
K Means Clustering Algorithm | K Means Example in Python | Machine Learning A...K Means Clustering Algorithm | K Means Example in Python | Machine Learning A...
K Means Clustering Algorithm | K Means Example in Python | Machine Learning A...
 
Should a football team go for a one or two point conversion? A dynamic progra...
Should a football team go for a one or two point conversion? A dynamic progra...Should a football team go for a one or two point conversion? A dynamic progra...
Should a football team go for a one or two point conversion? A dynamic progra...
 
Big Data Analytics - Unit 3.pptx
Big Data Analytics - Unit 3.pptxBig Data Analytics - Unit 3.pptx
Big Data Analytics - Unit 3.pptx
 
Training Deep Networks with Backprop (D1L4 Insight@DCU Machine Learning Works...
Training Deep Networks with Backprop (D1L4 Insight@DCU Machine Learning Works...Training Deep Networks with Backprop (D1L4 Insight@DCU Machine Learning Works...
Training Deep Networks with Backprop (D1L4 Insight@DCU Machine Learning Works...
 
COSA-The-Pathway to keep out weeds of data analysis.pdf
COSA-The-Pathway to keep out weeds  of data analysis.pdfCOSA-The-Pathway to keep out weeds  of data analysis.pdf
COSA-The-Pathway to keep out weeds of data analysis.pdf
 
Apache Sparkを用いたスケーラブルな時系列データの異常検知モデル学習ソフトウェアの開発
Apache Sparkを用いたスケーラブルな時系列データの異常検知モデル学習ソフトウェアの開発Apache Sparkを用いたスケーラブルな時系列データの異常検知モデル学習ソフトウェアの開発
Apache Sparkを用いたスケーラブルな時系列データの異常検知モデル学習ソフトウェアの開発
 
Novel Graph Modeling Framework for Feature Importance Determination in Unsupe...
Novel Graph Modeling Framework for Feature Importance Determination in Unsupe...Novel Graph Modeling Framework for Feature Importance Determination in Unsupe...
Novel Graph Modeling Framework for Feature Importance Determination in Unsupe...
 

More from Kirill Eremenko

More from Kirill Eremenko (20)

Deep Learning A-Z™: Boltzmann Machine - Module 5 - Boltzmann Machine
Deep Learning A-Z™: Boltzmann Machine - Module 5 - Boltzmann MachineDeep Learning A-Z™: Boltzmann Machine - Module 5 - Boltzmann Machine
Deep Learning A-Z™: Boltzmann Machine - Module 5 - Boltzmann Machine
 
Deep Learning A-Z™: Regression & Classification - Module 7
Deep Learning A-Z™: Regression & Classification - Module 7Deep Learning A-Z™: Regression & Classification - Module 7
Deep Learning A-Z™: Regression & Classification - Module 7
 
Deep Learning A-Z™: Autoencoders - Sparse Autoencoders
Deep Learning A-Z™: Autoencoders  - Sparse AutoencodersDeep Learning A-Z™: Autoencoders  - Sparse Autoencoders
Deep Learning A-Z™: Autoencoders - Sparse Autoencoders
 
Deep Learning A-Z™: Regression & Classification - Simple Linear Regression - ...
Deep Learning A-Z™: Regression & Classification - Simple Linear Regression - ...Deep Learning A-Z™: Regression & Classification - Simple Linear Regression - ...
Deep Learning A-Z™: Regression & Classification - Simple Linear Regression - ...
 
Deep Learning A-Z™: Regression & Classification - Simple Linear Regression - ...
Deep Learning A-Z™: Regression & Classification - Simple Linear Regression - ...Deep Learning A-Z™: Regression & Classification - Simple Linear Regression - ...
Deep Learning A-Z™: Regression & Classification - Simple Linear Regression - ...
 
Deep Learning A-Z™: Autoencoders - Contractive Autoencoders
Deep Learning A-Z™: Autoencoders  - Contractive AutoencodersDeep Learning A-Z™: Autoencoders  - Contractive Autoencoders
Deep Learning A-Z™: Autoencoders - Contractive Autoencoders
 
Deep Learning A-Z™: Regression & Classification - Logistic Regression
Deep Learning A-Z™: Regression & Classification - Logistic RegressionDeep Learning A-Z™: Regression & Classification - Logistic Regression
Deep Learning A-Z™: Regression & Classification - Logistic Regression
 
Deep Learning A-Z™: Autoencoders - Stacked Autoencoders
Deep Learning A-Z™: Autoencoders  - Stacked AutoencodersDeep Learning A-Z™: Autoencoders  - Stacked Autoencoders
Deep Learning A-Z™: Autoencoders - Stacked Autoencoders
 
Deep Learning A-Z™: Autoencoders - Denoising Autoencoders
Deep Learning A-Z™: Autoencoders  - Denoising AutoencodersDeep Learning A-Z™: Autoencoders  - Denoising Autoencoders
Deep Learning A-Z™: Autoencoders - Denoising Autoencoders
 
Deep Learning A-Z™: Boltzmann Machines - Restricted Boltzmann Machine
Deep Learning A-Z™: Boltzmann Machines  - Restricted Boltzmann MachineDeep Learning A-Z™: Boltzmann Machines  - Restricted Boltzmann Machine
Deep Learning A-Z™: Boltzmann Machines - Restricted Boltzmann Machine
 
Deep Learning A-Z™: Regression - Multiple Linear Regression Intuition
Deep Learning A-Z™: Regression - Multiple Linear Regression IntuitionDeep Learning A-Z™: Regression - Multiple Linear Regression Intuition
Deep Learning A-Z™: Regression - Multiple Linear Regression Intuition
 
Deep Learning A-Z™: Boltzmann Machines - Deep Belief Networks
Deep Learning A-Z™: Boltzmann Machines  - Deep Belief NetworksDeep Learning A-Z™: Boltzmann Machines  - Deep Belief Networks
Deep Learning A-Z™: Boltzmann Machines - Deep Belief Networks
 
Deep Learning A-Z™: Boltzmann Machines - Contrastive Divergence
Deep Learning A-Z™: Boltzmann Machines  - Contrastive DivergenceDeep Learning A-Z™: Boltzmann Machines  - Contrastive Divergence
Deep Learning A-Z™: Boltzmann Machines - Contrastive Divergence
 
Deep Learning A-Z™: Boltzmann Machines - Energy Based Models (ebm)
Deep Learning A-Z™: Boltzmann Machines  - Energy Based Models (ebm)Deep Learning A-Z™: Boltzmann Machines  - Energy Based Models (ebm)
Deep Learning A-Z™: Boltzmann Machines - Energy Based Models (ebm)
 
Deep Learning A-Z™: Boltzmann Machines - Deep Boltzmann Machines
Deep Learning A-Z™: Boltzmann Machines  - Deep Boltzmann MachinesDeep Learning A-Z™: Boltzmann Machines  - Deep Boltzmann Machines
Deep Learning A-Z™: Boltzmann Machines - Deep Boltzmann Machines
 
Deep Learning A-Z™: Boltzmann Machines - Boltzmann Machine
Deep Learning A-Z™: Boltzmann Machines  - Boltzmann MachineDeep Learning A-Z™: Boltzmann Machines  - Boltzmann Machine
Deep Learning A-Z™: Boltzmann Machines - Boltzmann Machine
 
Deep Learning A-Z™: AutoEncoders - AutoEncoders
Deep Learning A-Z™: AutoEncoders  - AutoEncodersDeep Learning A-Z™: AutoEncoders  - AutoEncoders
Deep Learning A-Z™: AutoEncoders - AutoEncoders
 
Deep Learning A-Z™: Boltzmann Machines - Plan of Attack
Deep Learning A-Z™: Boltzmann Machines  - Plan of AttackDeep Learning A-Z™: Boltzmann Machines  - Plan of Attack
Deep Learning A-Z™: Boltzmann Machines - Plan of Attack
 
Deep Learning A-Z™: Boltzmann Machines - Module 5
Deep Learning A-Z™: Boltzmann Machines  - Module 5Deep Learning A-Z™: Boltzmann Machines  - Module 5
Deep Learning A-Z™: Boltzmann Machines - Module 5
 
Deep Learning A-Z™: Self Organizing Maps (SOM) - Reading an Advanced SOM
Deep Learning A-Z™: Self Organizing Maps (SOM) - Reading an Advanced SOMDeep Learning A-Z™: Self Organizing Maps (SOM) - Reading an Advanced SOM
Deep Learning A-Z™: Self Organizing Maps (SOM) - Reading an Advanced SOM
 

Recently uploaded

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Recently uploaded (20)

Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 

Deep Learning A-Z™: Self Organizing Maps (SOM) - K-Means Clustering (part 2)