How to randomly select five data points on moon dataset

Viewed 83
X,y = make_moons(n_samples=200,noise=0, random_state=0)
n_clusters=5
KMeans(n_clusters = 15,random_state=10)
model.fit(X)
centroids = model.cluster_centers_
labels = model.labels_

How to randomly select five data points from moons dataset for testify whether they are outlier or not?

0 Answers
Related