API

Utils

bidict(*args, **kwargs)

Bidirectional dictionary inherited from the built-in dict to represent the class combination map.

compute_y_dist(y)

Compute the distribution of labels given the label vectors.

compute_hamming_distance(v1, v2)

Compute the Hamming distance between two binary strings or binary vector

Metrics

adjusted_accuracy_score(y_true, y_pred, mapping)

Adjusted accuracy is an adjustment for accuracy.

itca(y_true, y_pred, mapping[, y_dist])

Sample-level information-theoretic classification accuracy (s-ITCA)

prediction_entropy(y_true, y_pred, mapping)

Compute the entropy of H(mapping(y_true), y_pred).