glance.clustering package
Submodules
humancompatible.explain.glance.clustering.kmeans module
- class humancompatible.explain.glance.clustering.kmeans.KMeansMethod(num_clusters, random_seed)[source]
Bases:
ClusteringMethodImplementation of a clustering method using KMeans.
This class provides an interface to apply KMeans clustering to a dataset.
Initializes the KMeansMethod class.
Parameters:
- num_clustersint
The number of clusters to form as well as the number of centroids to generate.
- random_seedint
A seed for the random number generator to ensure reproducibility.