itca.itca¶
- itca.itca(y_true, y_pred, mapping, y_dist=None)¶
Sample-level information-theoretic classification accuracy (s-ITCA)
- Parameters
y_true (int array, shape = [n_samples, ]) – A clustering of the data into disjoint subsets.
y_pred (int array, shape = [n_samples, ]) – A clustering of the data into disjoint subsets.
mapping (bidict, size = n_classes_ori) – Transform the original labels to the merged labels.
y_dist (dict of length n_classes) – Distribution of the original classes.
- Returns
itca_score
- Return type
float