geosnap.analyze.analytics.kmeans¶
-
geosnap.analyze.analytics.
kmeans
(X, n_clusters, init='k-means++', n_init=10, max_iter=300, tol=0.0001, verbose=0, random_state=None, copy_x=True, n_jobs=None, algorithm='auto', precompute_distances='auto', **kwargs)[source]¶ K-Means clustering.
- Parameters
- Xarray_like
n x k attribute data
- n_clusters
int
, optional, default: 8 The number of clusters to form as well as the number of centroids to generate.
- Returns
- fitted model
sklearn.cluster.KMeans
instance
- fitted model