SlideShare a Scribd company logo
1 of 12
K-means and X-means
Yoshinobu Tanno
tannoyoshinobu@gmail.com
http://ytanno.herokuapp.com/
At first
• I am not a professional of machine learning .
• Please contact me if there is any problem in time how and programs.
• The purpose of this slide is want feedback .
K-means
First Step
• Give the numerical value of the random clustering in point
• The finger show that same color point is same clustering
Second Step
• Big Point is Each Center
• Average of each clustering points(x, y)
Third Step
• Update Clustering Point Nearest Each Center
Fourth Step
• Continue Second Step and Third Step
until not moving center point or change value is low.
X-means
• K = 2 and continue parent’s variance of the center coordinates and each
cluster point < child’s variance of the center coordinates and each cluster
point
Compare Parent and 2 Children Center
Dispersion
Point1
Center
Distance1
Parent
If [Parent] > [Cluster Index=0] + [Cluster Index = 1]
(Center Distance Dispersion )
{
Same Processing
}
Else Register Clusters
Cluster Index=0
K=2
Kmenas
Cluster Index=1
K=2
Kmenas
K=2
Kmenas
How to calculate Center Distance Average
• Center Distance Average
var cPoints = ClusterPoints.Where(x => x.ClusterIndex == i);
foreach(var p in cPoints) {
var dist = Math.Sqrt(Math.Pow(CenterList[clusterIndex].X - p.Point.X,
2) + Math.Pow(CenterList[clusterIndex].Y - p.Point.Y, 2));
list.Add(dist); }
CenterDistAvg[clusterIndex] = list.Average();
How to calculate Center Distance Dispersion
var sum = 0.0;
foreach(var l in list)
{ sum += Math.Pow((l - CenterDistAvg[clusterIndex]),2); }
CenterDistDispersion[clusterIndex] = sum / (double)list.Count;
Result
• Divided into good results and bad results
Bad Result Good Result
Sample Code
• https://github.com/ytanno/KmenasAndXmeans

More Related Content

What's hot

Lesson 17
Lesson 17Lesson 17
Lesson 17NRWEG3
 
Intro to-number-talks-powerpoint
Intro to-number-talks-powerpointIntro to-number-talks-powerpoint
Intro to-number-talks-powerpointmkelley1212
 
Data visualization via Tableau solving an excel problem
Data visualization via Tableau solving an excel problemData visualization via Tableau solving an excel problem
Data visualization via Tableau solving an excel problemVivAde1
 
Number talks usd305
Number talks usd305Number talks usd305
Number talks usd305Linda
 
Experience of using Spreadsheets as a bridge in the understanding of AI techn...
Experience of using Spreadsheets as a bridge in the understanding of AI techn...Experience of using Spreadsheets as a bridge in the understanding of AI techn...
Experience of using Spreadsheets as a bridge in the understanding of AI techn...Scott Turner
 
Addition and Subtraction PowerPoint
Addition and Subtraction PowerPointAddition and Subtraction PowerPoint
Addition and Subtraction PowerPointopsroom2
 
Module 3 lesson 11
Module 3 lesson 11Module 3 lesson 11
Module 3 lesson 11NRWEG3
 
Lesson 1 Grade 2 Addition and Subtraction
Lesson 1 Grade 2 Addition and SubtractionLesson 1 Grade 2 Addition and Subtraction
Lesson 1 Grade 2 Addition and Subtractionsusan70
 
Lesson 21
Lesson 21Lesson 21
Lesson 21NRWEG3
 
Number talks instructional strategy November 3 Staff Development Day
Number talks instructional strategy November 3 Staff Development DayNumber talks instructional strategy November 3 Staff Development Day
Number talks instructional strategy November 3 Staff Development DayLoomisUSD
 
Module 3 Lesson 5
Module 3 Lesson 5 Module 3 Lesson 5
Module 3 Lesson 5 NRWEG3
 
Pan Balance
Pan Balance Pan Balance
Pan Balance klecoq
 
3rd grade multiplication final product
3rd grade multiplication final product3rd grade multiplication final product
3rd grade multiplication final productDanielle Rubin
 
Just Join: A Mathematical Problem
Just Join: A Mathematical ProblemJust Join: A Mathematical Problem
Just Join: A Mathematical ProblemKaanthan Soma
 
Add and subtract
Add and subtractAdd and subtract
Add and subtractthighsmi
 
Addition subtraction pd
Addition subtraction pdAddition subtraction pd
Addition subtraction pdmattonz
 
Innovative work rasiya
Innovative work rasiyaInnovative work rasiya
Innovative work rasiyariyas1995
 

What's hot (20)

Lesson 17
Lesson 17Lesson 17
Lesson 17
 
Intro to-number-talks-powerpoint
Intro to-number-talks-powerpointIntro to-number-talks-powerpoint
Intro to-number-talks-powerpoint
 
Data visualization via Tableau solving an excel problem
Data visualization via Tableau solving an excel problemData visualization via Tableau solving an excel problem
Data visualization via Tableau solving an excel problem
 
Number talks usd305
Number talks usd305Number talks usd305
Number talks usd305
 
Experience of using Spreadsheets as a bridge in the understanding of AI techn...
Experience of using Spreadsheets as a bridge in the understanding of AI techn...Experience of using Spreadsheets as a bridge in the understanding of AI techn...
Experience of using Spreadsheets as a bridge in the understanding of AI techn...
 
Addition and Subtraction PowerPoint
Addition and Subtraction PowerPointAddition and Subtraction PowerPoint
Addition and Subtraction PowerPoint
 
Module 3 lesson 11
Module 3 lesson 11Module 3 lesson 11
Module 3 lesson 11
 
Lesson 1 Grade 2 Addition and Subtraction
Lesson 1 Grade 2 Addition and SubtractionLesson 1 Grade 2 Addition and Subtraction
Lesson 1 Grade 2 Addition and Subtraction
 
Lesson 21
Lesson 21Lesson 21
Lesson 21
 
Data handling
Data handlingData handling
Data handling
 
Number talks instructional strategy November 3 Staff Development Day
Number talks instructional strategy November 3 Staff Development DayNumber talks instructional strategy November 3 Staff Development Day
Number talks instructional strategy November 3 Staff Development Day
 
Module 3 Lesson 5
Module 3 Lesson 5 Module 3 Lesson 5
Module 3 Lesson 5
 
Pan Balance
Pan Balance Pan Balance
Pan Balance
 
MEASURES OF POSITION
MEASURES OF POSITIONMEASURES OF POSITION
MEASURES OF POSITION
 
3rd grade multiplication final product
3rd grade multiplication final product3rd grade multiplication final product
3rd grade multiplication final product
 
Just Join: A Mathematical Problem
Just Join: A Mathematical ProblemJust Join: A Mathematical Problem
Just Join: A Mathematical Problem
 
Mtap 4 problem set #9
Mtap 4 problem set #9Mtap 4 problem set #9
Mtap 4 problem set #9
 
Add and subtract
Add and subtractAdd and subtract
Add and subtract
 
Addition subtraction pd
Addition subtraction pdAddition subtraction pd
Addition subtraction pd
 
Innovative work rasiya
Innovative work rasiyaInnovative work rasiya
Innovative work rasiya
 

Viewers also liked

読解支援@2015 07-13
読解支援@2015 07-13読解支援@2015 07-13
読解支援@2015 07-13sekizawayuuki
 
Deep Learningと自然言語処理
Deep Learningと自然言語処理Deep Learningと自然言語処理
Deep Learningと自然言語処理Preferred Networks
 
データサイエンティスト協会 木曜勉強会 #04 『クラスター分析の基礎と総合通販会社での活用例 〜 ビッグデータ時代にクラスター分析はどう変わるか 〜』
データサイエンティスト協会 木曜勉強会 #04 『クラスター分析の基礎と総合通販会社での活用例  〜 ビッグデータ時代にクラスター分析はどう変わるか 〜』データサイエンティスト協会 木曜勉強会 #04 『クラスター分析の基礎と総合通販会社での活用例  〜 ビッグデータ時代にクラスター分析はどう変わるか 〜』
データサイエンティスト協会 木曜勉強会 #04 『クラスター分析の基礎と総合通販会社での活用例 〜 ビッグデータ時代にクラスター分析はどう変わるか 〜』The Japan DataScientist Society
 
混合モデルとEMアルゴリズム(PRML第9章)
混合モデルとEMアルゴリズム(PRML第9章)混合モデルとEMアルゴリズム(PRML第9章)
混合モデルとEMアルゴリズム(PRML第9章)Takao Yamanaka
 
数式を使わずイメージで理解するEMアルゴリズム
数式を使わずイメージで理解するEMアルゴリズム数式を使わずイメージで理解するEMアルゴリズム
数式を使わずイメージで理解するEMアルゴリズム裕樹 奥田
 
ようやく分かった!最尤推定とベイズ推定
ようやく分かった!最尤推定とベイズ推定ようやく分かった!最尤推定とベイズ推定
ようやく分かった!最尤推定とベイズ推定Akira Masuda
 

Viewers also liked (7)

読解支援@2015 07-13
読解支援@2015 07-13読解支援@2015 07-13
読解支援@2015 07-13
 
Clustering
ClusteringClustering
Clustering
 
Deep Learningと自然言語処理
Deep Learningと自然言語処理Deep Learningと自然言語処理
Deep Learningと自然言語処理
 
データサイエンティスト協会 木曜勉強会 #04 『クラスター分析の基礎と総合通販会社での活用例 〜 ビッグデータ時代にクラスター分析はどう変わるか 〜』
データサイエンティスト協会 木曜勉強会 #04 『クラスター分析の基礎と総合通販会社での活用例  〜 ビッグデータ時代にクラスター分析はどう変わるか 〜』データサイエンティスト協会 木曜勉強会 #04 『クラスター分析の基礎と総合通販会社での活用例  〜 ビッグデータ時代にクラスター分析はどう変わるか 〜』
データサイエンティスト協会 木曜勉強会 #04 『クラスター分析の基礎と総合通販会社での活用例 〜 ビッグデータ時代にクラスター分析はどう変わるか 〜』
 
混合モデルとEMアルゴリズム(PRML第9章)
混合モデルとEMアルゴリズム(PRML第9章)混合モデルとEMアルゴリズム(PRML第9章)
混合モデルとEMアルゴリズム(PRML第9章)
 
数式を使わずイメージで理解するEMアルゴリズム
数式を使わずイメージで理解するEMアルゴリズム数式を使わずイメージで理解するEMアルゴリズム
数式を使わずイメージで理解するEMアルゴリズム
 
ようやく分かった!最尤推定とベイズ推定
ようやく分かった!最尤推定とベイズ推定ようやく分かった!最尤推定とベイズ推定
ようやく分かった!最尤推定とベイズ推定
 

Similar to K-means and X-means

Want to Engage Your Students? Engage Them in the Math Practices
Want to Engage Your Students? Engage Them in the Math PracticesWant to Engage Your Students? Engage Them in the Math Practices
Want to Engage Your Students? Engage Them in the Math PracticesDreamBox Learning
 
Unit 1 Slideshow
Unit 1 SlideshowUnit 1 Slideshow
Unit 1 Slideshowjwalts
 
Nts book-for-gat-general
Nts book-for-gat-generalNts book-for-gat-general
Nts book-for-gat-generaldiaryinc
 
Topic 3 Measures of Central Tendency -Grouped Data.pptx
Topic 3 Measures of Central Tendency -Grouped Data.pptxTopic 3 Measures of Central Tendency -Grouped Data.pptx
Topic 3 Measures of Central Tendency -Grouped Data.pptxCallplanetsDeveloper
 
NTS-Book-for-GAT-General
NTS-Book-for-GAT-GeneralNTS-Book-for-GAT-General
NTS-Book-for-GAT-GeneralAmmad khan
 
Nts and gat general book
Nts and gat general bookNts and gat general book
Nts and gat general bookYasar Hayat
 
Calculation Methods
Calculation MethodsCalculation Methods
Calculation Methodscatwright1
 
Webinar Slides
Webinar SlidesWebinar Slides
Webinar Slidesjwalts
 
Unsupervised Learning in Machine Learning
Unsupervised Learning in Machine LearningUnsupervised Learning in Machine Learning
Unsupervised Learning in Machine LearningPyingkodi Maran
 
PSY 207 - Chapter 3 - Central Tendency - Student Version [Autosaved].ppt
PSY 207 - Chapter 3 - Central Tendency - Student Version [Autosaved].pptPSY 207 - Chapter 3 - Central Tendency - Student Version [Autosaved].ppt
PSY 207 - Chapter 3 - Central Tendency - Student Version [Autosaved].pptDominiquePeters6
 
Unit 1 Webinar Slides
Unit 1 Webinar SlidesUnit 1 Webinar Slides
Unit 1 Webinar Slidesjwalts
 
arithmetic-vs-geometric.pptx
arithmetic-vs-geometric.pptxarithmetic-vs-geometric.pptx
arithmetic-vs-geometric.pptxJESSALOUCAPAPAS2
 
Ccss and assessment_4_2013
Ccss and assessment_4_2013Ccss and assessment_4_2013
Ccss and assessment_4_2013tsmyth2
 
Unit 2 3rd grade cs 2012 2013
Unit 2 3rd grade cs 2012 2013Unit 2 3rd grade cs 2012 2013
Unit 2 3rd grade cs 2012 2013Isaac_Schools_5
 

Similar to K-means and X-means (20)

Want to Engage Your Students? Engage Them in the Math Practices
Want to Engage Your Students? Engage Them in the Math PracticesWant to Engage Your Students? Engage Them in the Math Practices
Want to Engage Your Students? Engage Them in the Math Practices
 
Unit 1 Slideshow
Unit 1 SlideshowUnit 1 Slideshow
Unit 1 Slideshow
 
Nts book for gat general
Nts book for gat generalNts book for gat general
Nts book for gat general
 
Nts book-for-gat-general
Nts book-for-gat-generalNts book-for-gat-general
Nts book-for-gat-general
 
Topic 3 Measures of Central Tendency -Grouped Data.pptx
Topic 3 Measures of Central Tendency -Grouped Data.pptxTopic 3 Measures of Central Tendency -Grouped Data.pptx
Topic 3 Measures of Central Tendency -Grouped Data.pptx
 
NTS-Book-for-GAT-General
NTS-Book-for-GAT-GeneralNTS-Book-for-GAT-General
NTS-Book-for-GAT-General
 
Nts and gat general book
Nts and gat general bookNts and gat general book
Nts and gat general book
 
Calculation Methods
Calculation MethodsCalculation Methods
Calculation Methods
 
Topic 3 Grouped Data.pptx
Topic 3 Grouped Data.pptxTopic 3 Grouped Data.pptx
Topic 3 Grouped Data.pptx
 
Data Mining Lecture_5.pptx
Data Mining Lecture_5.pptxData Mining Lecture_5.pptx
Data Mining Lecture_5.pptx
 
G4ww5 8
G4ww5 8G4ww5 8
G4ww5 8
 
Webinar Slides
Webinar SlidesWebinar Slides
Webinar Slides
 
Unsupervised Learning in Machine Learning
Unsupervised Learning in Machine LearningUnsupervised Learning in Machine Learning
Unsupervised Learning in Machine Learning
 
PSY 207 - Chapter 3 - Central Tendency - Student Version [Autosaved].ppt
PSY 207 - Chapter 3 - Central Tendency - Student Version [Autosaved].pptPSY 207 - Chapter 3 - Central Tendency - Student Version [Autosaved].ppt
PSY 207 - Chapter 3 - Central Tendency - Student Version [Autosaved].ppt
 
Unit 1 Webinar Slides
Unit 1 Webinar SlidesUnit 1 Webinar Slides
Unit 1 Webinar Slides
 
Unit 7 jcs md
Unit 7 jcs mdUnit 7 jcs md
Unit 7 jcs md
 
arithmetic-vs-geometric.pptx
arithmetic-vs-geometric.pptxarithmetic-vs-geometric.pptx
arithmetic-vs-geometric.pptx
 
Ccss and assessment_4_2013
Ccss and assessment_4_2013Ccss and assessment_4_2013
Ccss and assessment_4_2013
 
Unit 2 3rd grade cs 2012 2013
Unit 2 3rd grade cs 2012 2013Unit 2 3rd grade cs 2012 2013
Unit 2 3rd grade cs 2012 2013
 
Central Tendency
Central TendencyCentral Tendency
Central Tendency
 

More from ytanno

How to be friend with Attiny202 which is small microcontroller
How to be friend with Attiny202 which is small microcontrollerHow to be friend with Attiny202 which is small microcontroller
How to be friend with Attiny202 which is small microcontrollerytanno
 
Process of Interval Photograph System
Process of Interval Photograph SystemProcess of Interval Photograph System
Process of Interval Photograph Systemytanno
 
How to make an effort for good job
How to make an effort for good jobHow to make an effort for good job
How to make an effort for good jobytanno
 
How To Bind Cuda And OpenCV
How To Bind Cuda And OpenCV How To Bind Cuda And OpenCV
How To Bind Cuda And OpenCV ytanno
 
How to autorun graphic application
How to autorun graphic applicationHow to autorun graphic application
How to autorun graphic applicationytanno
 
How to setup 3D printer (Ender 3 pro)
How to setup 3D printer (Ender 3 pro)How to setup 3D printer (Ender 3 pro)
How to setup 3D printer (Ender 3 pro)ytanno
 
How to set https server
How to set https serverHow to set https server
How to set https serverytanno
 
How to write code in Attiny10
How to write code in Attiny10How to write code in Attiny10
How to write code in Attiny10ytanno
 
How to set up two i2cs on Attiny841
How to set up two i2cs on Attiny841How to set up two i2cs on Attiny841
How to set up two i2cs on Attiny841ytanno
 
How to write code on MachXO2
How to write code on MachXO2How to write code on MachXO2
How to write code on MachXO2ytanno
 
First Step SVM
First Step SVMFirst Step SVM
First Step SVMytanno
 
さるでも分かりたい9dofで作るクォータニオン姿勢
さるでも分かりたい9dofで作るクォータニオン姿勢さるでも分かりたい9dofで作るクォータニオン姿勢
さるでも分かりたい9dofで作るクォータニオン姿勢ytanno
 
Xaml html5
Xaml html5Xaml html5
Xaml html5ytanno
 
C# でブラウザ操作
C# でブラウザ操作C# でブラウザ操作
C# でブラウザ操作ytanno
 
PI制御を作ってみた
PI制御を作ってみたPI制御を作ってみた
PI制御を作ってみたytanno
 
CharpTwitter
CharpTwitterCharpTwitter
CharpTwitterytanno
 
MongoDBCSharp
MongoDBCSharpMongoDBCSharp
MongoDBCSharpytanno
 
VisualStudinoの役に立ちそうな拡張機能をまとめてみた
VisualStudinoの役に立ちそうな拡張機能をまとめてみたVisualStudinoの役に立ちそうな拡張機能をまとめてみた
VisualStudinoの役に立ちそうな拡張機能をまとめてみたytanno
 
2013_kougi6
2013_kougi62013_kougi6
2013_kougi6ytanno
 
兼本研究室プログラム講義4回目
兼本研究室プログラム講義4回目兼本研究室プログラム講義4回目
兼本研究室プログラム講義4回目ytanno
 

More from ytanno (20)

How to be friend with Attiny202 which is small microcontroller
How to be friend with Attiny202 which is small microcontrollerHow to be friend with Attiny202 which is small microcontroller
How to be friend with Attiny202 which is small microcontroller
 
Process of Interval Photograph System
Process of Interval Photograph SystemProcess of Interval Photograph System
Process of Interval Photograph System
 
How to make an effort for good job
How to make an effort for good jobHow to make an effort for good job
How to make an effort for good job
 
How To Bind Cuda And OpenCV
How To Bind Cuda And OpenCV How To Bind Cuda And OpenCV
How To Bind Cuda And OpenCV
 
How to autorun graphic application
How to autorun graphic applicationHow to autorun graphic application
How to autorun graphic application
 
How to setup 3D printer (Ender 3 pro)
How to setup 3D printer (Ender 3 pro)How to setup 3D printer (Ender 3 pro)
How to setup 3D printer (Ender 3 pro)
 
How to set https server
How to set https serverHow to set https server
How to set https server
 
How to write code in Attiny10
How to write code in Attiny10How to write code in Attiny10
How to write code in Attiny10
 
How to set up two i2cs on Attiny841
How to set up two i2cs on Attiny841How to set up two i2cs on Attiny841
How to set up two i2cs on Attiny841
 
How to write code on MachXO2
How to write code on MachXO2How to write code on MachXO2
How to write code on MachXO2
 
First Step SVM
First Step SVMFirst Step SVM
First Step SVM
 
さるでも分かりたい9dofで作るクォータニオン姿勢
さるでも分かりたい9dofで作るクォータニオン姿勢さるでも分かりたい9dofで作るクォータニオン姿勢
さるでも分かりたい9dofで作るクォータニオン姿勢
 
Xaml html5
Xaml html5Xaml html5
Xaml html5
 
C# でブラウザ操作
C# でブラウザ操作C# でブラウザ操作
C# でブラウザ操作
 
PI制御を作ってみた
PI制御を作ってみたPI制御を作ってみた
PI制御を作ってみた
 
CharpTwitter
CharpTwitterCharpTwitter
CharpTwitter
 
MongoDBCSharp
MongoDBCSharpMongoDBCSharp
MongoDBCSharp
 
VisualStudinoの役に立ちそうな拡張機能をまとめてみた
VisualStudinoの役に立ちそうな拡張機能をまとめてみたVisualStudinoの役に立ちそうな拡張機能をまとめてみた
VisualStudinoの役に立ちそうな拡張機能をまとめてみた
 
2013_kougi6
2013_kougi62013_kougi6
2013_kougi6
 
兼本研究室プログラム講義4回目
兼本研究室プログラム講義4回目兼本研究室プログラム講義4回目
兼本研究室プログラム講義4回目
 

Recently uploaded

Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024SynarionITSolutions
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Principled Technologies
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 

Recently uploaded (20)

Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 

K-means and X-means

  • 1. K-means and X-means Yoshinobu Tanno tannoyoshinobu@gmail.com http://ytanno.herokuapp.com/
  • 2. At first • I am not a professional of machine learning . • Please contact me if there is any problem in time how and programs. • The purpose of this slide is want feedback .
  • 3. K-means First Step • Give the numerical value of the random clustering in point • The finger show that same color point is same clustering
  • 4. Second Step • Big Point is Each Center • Average of each clustering points(x, y)
  • 5. Third Step • Update Clustering Point Nearest Each Center
  • 6. Fourth Step • Continue Second Step and Third Step until not moving center point or change value is low.
  • 7. X-means • K = 2 and continue parent’s variance of the center coordinates and each cluster point < child’s variance of the center coordinates and each cluster point
  • 8. Compare Parent and 2 Children Center Dispersion Point1 Center Distance1 Parent If [Parent] > [Cluster Index=0] + [Cluster Index = 1] (Center Distance Dispersion ) { Same Processing } Else Register Clusters Cluster Index=0 K=2 Kmenas Cluster Index=1 K=2 Kmenas K=2 Kmenas
  • 9. How to calculate Center Distance Average • Center Distance Average var cPoints = ClusterPoints.Where(x => x.ClusterIndex == i); foreach(var p in cPoints) { var dist = Math.Sqrt(Math.Pow(CenterList[clusterIndex].X - p.Point.X, 2) + Math.Pow(CenterList[clusterIndex].Y - p.Point.Y, 2)); list.Add(dist); } CenterDistAvg[clusterIndex] = list.Average();
  • 10. How to calculate Center Distance Dispersion var sum = 0.0; foreach(var l in list) { sum += Math.Pow((l - CenterDistAvg[clusterIndex]),2); } CenterDistDispersion[clusterIndex] = sum / (double)list.Count;
  • 11. Result • Divided into good results and bad results Bad Result Good Result