bsxplorer.Clusters.ClusterMany.kmeans
- ClusterMany.kmeans(n_clusters: int = 8, n_init: int = 10, **kwargs)[source]
KMeans clustering on sample regions. Clustering is being made with sklearn.cluster.KMeans.
- Parameters:
n_clusters – The number of clusters to generate.
n_init – Number of times the k-means algorithm is run with different centroid seeds.
kwargs –
- Return type: