Question: ( a ) Write code to apply k - means to cluster the data points with the initial centroids as follows. Display the resulting cluster

(a) Write code to apply k-means to cluster the data points with the initial centroids as follows. Display the resulting cluster labels of the data points, cluster centroids, number of iterations performed, and inertia. [10]
Data points: (0,1),(5,2),(4,1),(4,2),(2,1),(6,3), and (1,3)
Initial centroids of C0 and C1: (2,1) and (4,3)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!