|
centers = _init_centroids( |
|
X, n_clusters, init, random_state=random_state, x_squared_norms=x_squared_norms |
|
) |
|
if verbose: |
|
print("Initialization complete") |
I might be getting this wrong, but the code here seems to be using initialization function from sklearn. This could cause issue since the kmeans++ initialization in sklearn is based on euclidean distance. It should be replaced with cosine distance.
spherecluster/spherecluster/spherical_kmeans.py
Lines 44 to 48 in 701b0b1
I might be getting this wrong, but the code here seems to be using initialization function from sklearn. This could cause issue since the kmeans++ initialization in sklearn is based on euclidean distance. It should be replaced with cosine distance.