Nikronic / K-MCI

This is an implementation of K-MCI algorithm in python.
Apache License 2.0
4 stars 0 forks source link

We need initial of centers in K-Means algorithm #6

Closed hamed-faraji closed 6 years ago

hamed-faraji commented 6 years ago

We need initial of centers in K-Means algorithm

hamed-faraji commented 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.

so, I use ndarray for handling this issue