Question: [ 3 0 points ] Implement K - means manually. Figure 1 : Scatter plot of datasets and the initialized centers of 3 clusters Given

[30 points] Implement K-means manually.
Figure 1: Scatter plot of datasets and the initialized centers of 3 clusters
Given the input matrix x whose rows represent different data points, please perform a k-means
clustering on this dataset using the Euclidean distance as the distance function. Here k is chosen
as 3. The Euclidean distance d between input vector vec(p)inRn and vec(q)inRn is defined as
d=i=1n(pi-qi)22
All data in x were plotted in Figure 1. The center of 3 clusters were initialized as vec(c1)=(6.2,3.2)
(red), vec(c2)=(6.6,3.7)(green), vec(c3)=(6.5,3.0)(blue).
[ 3 0 points ] Implement K - means manually.

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 Programming Questions!