itca.adjusted_accuracy_score

itca.adjusted_accuracy_score(y_true, y_pred, mapping, adjust_by='cardinal')

Adjusted accuracy is an adjustment for accuracy.

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.

  • adjust_by (str, "cardinal" or "size") –

Returns

aac

Return type

float ( 0 <= acc <= 1)