Closed hamed-faraji closed 6 years ago
init : {‘k-means++’, ‘random’ or an ndarray}
Method for initialization, defaults to ‘k-means++’:
‘k-means++’: selects initial cluster centers for k-mean clustering in a smart way to speed up convergence. See section Notes in k_init for more details.
‘random’: choose k observations (rows) at random from data for the initial centroids.
If a ndarray is passed, it should be of shape (n_clusters, n_features) and gives the initial centers.
We need initial of centers in K-Means algorithm