SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere Àhnliche Inhalte

Was ist angesagt?

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
 
Data handling
Data handlingData handling
Data handlingMark Santos
 
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
 

Was ist angesagt? (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
 

Andere mochten auch

èȘ­è§Łæ”ŻæŽ@2015 07-13
èȘ­è§Łæ”ŻæŽ@2015 07-13èȘ­è§Łæ”ŻæŽ@2015 07-13
èȘ­è§Łæ”ŻæŽ@2015 07-13sekizawayuuki
 
Clustering
ClusteringClustering
ClusteringNLPseminar
 
Deep Learningずè‡Ș然蚀èȘžć‡Šç†
Deep Learningずè‡Ș然蚀èȘžć‡Šç†Deep Learningずè‡Ș然蚀èȘžć‡Šç†
Deep Learningずè‡Ș然蚀èȘžć‡Šç†Preferred Networks
 
ăƒ‡ăƒŒă‚żă‚”ă‚€ă‚šăƒłăƒ†ă‚Łă‚čăƒˆć”äŒš æœšæ›œć‹‰ćŒ·äŒš #04 ă€Žă‚Żăƒ©ă‚čă‚żăƒŒćˆ†æžăźćŸșç€Žăšç·ćˆé€šèČ©äŒšç€Ÿă§ăźæŽ»ç”šäŸ‹ 〜 ăƒ“ăƒƒă‚°ăƒ‡ăƒŒă‚żæ™‚ä»Łă«ă‚Żăƒ©ă‚čă‚żăƒŒćˆ†æžăŻă©ă†ć€‰ă‚ă‚‹ă‹ 〜』
ăƒ‡ăƒŒă‚żă‚”ă‚€ă‚šăƒłăƒ†ă‚Łă‚čăƒˆć”äŒš æœšæ›œć‹‰ćŒ·äŒš #04 ă€Žă‚Żăƒ©ă‚čă‚żăƒŒćˆ†æžăźćŸșç€Žăšç·ćˆé€šèČ©äŒšç€Ÿă§ăźæŽ»ç”šäŸ‹  〜 ăƒ“ăƒƒă‚°ăƒ‡ăƒŒă‚żæ™‚ä»Łă«ă‚Żăƒ©ă‚čă‚żăƒŒćˆ†æžăŻă©ă†ć€‰ă‚ă‚‹ă‹ ă€œă€ăƒ‡ăƒŒă‚żă‚”ă‚€ă‚šăƒłăƒ†ă‚Łă‚čăƒˆć”äŒš æœšæ›œć‹‰ćŒ·äŒš #04 ă€Žă‚Żăƒ©ă‚čă‚żăƒŒćˆ†æžăźćŸșç€Žăšç·ćˆé€šèČ©äŒšç€Ÿă§ăźæŽ»ç”šäŸ‹  〜 ăƒ“ăƒƒă‚°ăƒ‡ăƒŒă‚żæ™‚ä»Łă«ă‚Żăƒ©ă‚čă‚żăƒŒćˆ†æžăŻă©ă†ć€‰ă‚ă‚‹ă‹ 〜』
ăƒ‡ăƒŒă‚żă‚”ă‚€ă‚šăƒłăƒ†ă‚Łă‚čăƒˆć”äŒš æœšæ›œć‹‰ćŒ·äŒš #04 ă€Žă‚Żăƒ©ă‚čă‚żăƒŒćˆ†æžăźćŸșç€Žăšç·ćˆé€šèČ©äŒšç€Ÿă§ăźæŽ»ç”šäŸ‹ 〜 ăƒ“ăƒƒă‚°ăƒ‡ăƒŒă‚żæ™‚ä»Łă«ă‚Żăƒ©ă‚čă‚żăƒŒćˆ†æžăŻă©ă†ć€‰ă‚ă‚‹ă‹ 〜』The Japan DataScientist Society
 
æ··ćˆăƒąăƒ‡ăƒ«ăšEMă‚ąăƒ«ă‚ŽăƒȘă‚șム(PRMLçŹŹïŒ™ç« ïŒ‰
æ··ćˆăƒąăƒ‡ăƒ«ăšEMă‚ąăƒ«ă‚ŽăƒȘă‚șム(PRMLçŹŹïŒ™ç« ïŒ‰æ··ćˆăƒąăƒ‡ăƒ«ăšEMă‚ąăƒ«ă‚ŽăƒȘă‚șム(PRMLçŹŹïŒ™ç« ïŒ‰
æ··ćˆăƒąăƒ‡ăƒ«ăšEMă‚ąăƒ«ă‚ŽăƒȘă‚șム(PRMLçŹŹïŒ™ç« ïŒ‰Takao Yamanaka
 
æ•°ćŒă‚’äœżă‚ăšă‚€ăƒĄăƒŒă‚žă§ç†è§Łă™ă‚‹EMă‚ąăƒ«ă‚ŽăƒȘă‚șム
æ•°ćŒă‚’äœżă‚ăšă‚€ăƒĄăƒŒă‚žă§ç†è§Łă™ă‚‹EMă‚ąăƒ«ă‚ŽăƒȘă‚șăƒ æ•°ćŒă‚’äœżă‚ăšă‚€ăƒĄăƒŒă‚žă§ç†è§Łă™ă‚‹EMă‚ąăƒ«ă‚ŽăƒȘă‚șム
æ•°ćŒă‚’äœżă‚ăšă‚€ăƒĄăƒŒă‚žă§ç†è§Łă™ă‚‹EMă‚ąăƒ«ă‚ŽăƒȘă‚șăƒ èŁ•æšč ć„„ç”°
 
ă‚ˆă†ă‚„ăćˆ†ă‹ăŁăŸïŒæœ€ć°€æŽšćźšăšăƒ™ă‚€ă‚șæŽšćźš
ă‚ˆă†ă‚„ăćˆ†ă‹ăŁăŸïŒæœ€ć°€æŽšćźšăšăƒ™ă‚€ă‚șæŽšćźšă‚ˆă†ă‚„ăćˆ†ă‹ăŁăŸïŒæœ€ć°€æŽšćźšăšăƒ™ă‚€ă‚șæŽšćźš
ă‚ˆă†ă‚„ăćˆ†ă‹ăŁăŸïŒæœ€ć°€æŽšćźšăšăƒ™ă‚€ă‚șæŽšćźšAkira Masuda
 

Andere mochten auch (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çŹŹïŒ™ç« ïŒ‰
æ··ćˆăƒąăƒ‡ăƒ«ăšEMă‚ąăƒ«ă‚ŽăƒȘă‚șム(PRMLçŹŹïŒ™ç« ïŒ‰æ··ćˆăƒąăƒ‡ăƒ«ăšEMă‚ąăƒ«ă‚ŽăƒȘă‚șム(PRMLçŹŹïŒ™ç« ïŒ‰
æ··ćˆăƒąăƒ‡ăƒ«ăšEMă‚ąăƒ«ă‚ŽăƒȘă‚șム(PRMLçŹŹïŒ™ç« ïŒ‰
 
æ•°ćŒă‚’äœżă‚ăšă‚€ăƒĄăƒŒă‚žă§ç†è§Łă™ă‚‹EMă‚ąăƒ«ă‚ŽăƒȘă‚șム
æ•°ćŒă‚’äœżă‚ăšă‚€ăƒĄăƒŒă‚žă§ç†è§Łă™ă‚‹EMă‚ąăƒ«ă‚ŽăƒȘă‚șăƒ æ•°ćŒă‚’äœżă‚ăšă‚€ăƒĄăƒŒă‚žă§ç†è§Łă™ă‚‹EMă‚ąăƒ«ă‚ŽăƒȘă‚șム
æ•°ćŒă‚’äœżă‚ăšă‚€ăƒĄăƒŒă‚žă§ç†è§Łă™ă‚‹EMă‚ąăƒ«ă‚ŽăƒȘă‚șム
 
ă‚ˆă†ă‚„ăćˆ†ă‹ăŁăŸïŒæœ€ć°€æŽšćźšăšăƒ™ă‚€ă‚șæŽšćźš
ă‚ˆă†ă‚„ăćˆ†ă‹ăŁăŸïŒæœ€ć°€æŽšćźšăšăƒ™ă‚€ă‚șæŽšćźšă‚ˆă†ă‚„ăćˆ†ă‹ăŁăŸïŒæœ€ć°€æŽšćźšăšăƒ™ă‚€ă‚șæŽšćźš
ă‚ˆă†ă‚„ăćˆ†ă‹ăŁăŸïŒæœ€ć°€æŽšćźšăšăƒ™ă‚€ă‚șæŽšćźš
 

Ähnlich wie 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
 
Data Mining Lecture_5.pptx
Data Mining Lecture_5.pptxData Mining Lecture_5.pptx
Data Mining Lecture_5.pptxSubrata Kumer Paul
 
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
 

Ähnlich wie 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
 

Mehr von 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
 
ć…ŒæœŹç ”ç©¶ćź€ăƒ—ăƒ­ă‚°ăƒ©ăƒ èŹ›çŸ©ïŒ”ć›žç›ź
ć…ŒæœŹç ”ç©¶ćź€ăƒ—ăƒ­ă‚°ăƒ©ăƒ èŹ›çŸ©ïŒ”ć›žç›źć…ŒæœŹç ”ç©¶ćź€ăƒ—ăƒ­ă‚°ăƒ©ăƒ èŹ›çŸ©ïŒ”ć›žç›ź
ć…ŒæœŹç ”ç©¶ćź€ăƒ—ăƒ­ă‚°ăƒ©ăƒ èŹ›çŸ©ïŒ”ć›žç›źytanno
 

Mehr von 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
 
ć…ŒæœŹç ”ç©¶ćź€ăƒ—ăƒ­ă‚°ăƒ©ăƒ èŹ›çŸ©ïŒ”ć›žç›ź
ć…ŒæœŹç ”ç©¶ćź€ăƒ—ăƒ­ă‚°ăƒ©ăƒ èŹ›çŸ©ïŒ”ć›žç›źć…ŒæœŹç ”ç©¶ćź€ăƒ—ăƒ­ă‚°ăƒ©ăƒ èŹ›çŸ©ïŒ”ć›žç›ź
ć…ŒæœŹç ”ç©¶ćź€ăƒ—ăƒ­ă‚°ăƒ©ăƒ èŹ›çŸ©ïŒ”ć›žç›ź
 

KĂŒrzlich hochgeladen

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
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
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
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
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
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
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel AraĂșjo
 
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
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 

KĂŒrzlich hochgeladen (20)

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
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...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
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
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
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)
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
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
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 

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