Question: ( 2 ^ ( pt ) ) Consider the two - moon data set of size 5 0 0 times 2 which can be

(2^(pt)) Consider the two-moon data set of size 500\times 2 which can be downloaded via
from sklearn.datasets import make_(m)oons
x,y= make_(m)oons , noise =.07, random_(s)tate =20 k-means on the two-moon data set with k=2, i.e., using the
following steps to classify the data set:
(a) Create a fully connected graph with the weight between the i th data point x_(i) and the j th data point x_(j)
defined by W(i,j)=exp(-||x_(i)-x_(j)|(|^(2))/(2\sigma ^(2))) with \sigma =0.1.
(b) Compute the symmetric normalized graph Laplacian L_(sym).
(c) Find the two eigenvectors corresponding to the two smallest eigenvalues of L_(sym) and get a matrix
UinR^(n\times 2).
(d) Apply k-means clustering to the matrix U to get 2 clusters, and visualize the clustering.
(e) Compare your spectral clustering result with the k-means one. Comment on your observations.
Solve using python
( 2 ^ ( pt ) ) Consider the two - moon data set

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!