Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

plese provide code in python Q6 Cluster the following e1ght points into three clusters with features (x,y) : A1(2,10);A2(2,5);A3(8,4);B1(5,8);B2(7,5);B3(6,4);C1(1,2);C2(4,9) : The distance function is Euclidean

image text in transcribedplese provide code in python

Q6 Cluster the following e1ght points into three clusters with features (x,y) : A1(2,10);A2(2,5);A3(8,4);B1(5,8);B2(7,5);B3(6,4);C1(1,2);C2(4,9) : The distance function is Euclidean distance. Suppose initially we assign A1,B1, and C1 as the center of each cluster, respectively. 1. Write a program that uses the k-means algorithm to show the final three clusters. You can use any programming language. For each iteration, you need to output the distance and the group matrix values. 2. Use the median value as your centroid and show the final three clusters. For each iteration, you need to output the distance and the group matrix values. 3. Comment on the result

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Spatial Databases 2nd Symposium Ssd 91 Zurich Switzerland August 1991 Proceedings Lncs 525

Authors: Oliver Gunther ,Hans-Jorg Schek

1st Edition

3540544143, 978-3540544142

More Books

Students also viewed these Databases questions

Question

Explain how international bodies support ESG reporting.

Answered: 1 week ago

Question

d. What language(s) did they speak?

Answered: 1 week ago