I am trying to do k means clustering in scikit learn. Code:
from sklearn.cluster import KMeans
kmeans = KMeans(n_clusters = 10)
x = df.values
kmeans.fit(x.reshape(-1, 1))
If the parameter n_init = random
, it chooses random initial centroids. Is there a way to fetch the initial centroids used?