utils.helper.measure_q
- utils.helper.measure_q(data, Groups=None, n_clusters=6, kmeans_kwargs={'init': 'random', 'max_iter': 400, 'n_init': 50, 'random_state': 197})[source]
This function will measure the quality of clustering using NMI, ARI, and ASW.
Parameters
- dataan array
The latent space of the model.
- Groupsan array
The real lables.
- n_clustersint
The number of clusters in K-means.