scib_rapids.nmi_ari_cluster_labels_kmeans

scib_rapids.nmi_ari_cluster_labels_kmeans#

scib_rapids.nmi_ari_cluster_labels_kmeans(X, labels)[source]#

Compute NMI and ARI between k-means clusters and labels.

Parameters:
  • X (ndarray) – Array of shape (n_cells, n_features).

  • labels (ndarray) – Array of shape (n_cells,) representing label values.

Return type:

dict[str, float]

Returns:

dict with ‘nmi’ and ‘ari’ keys