itca.prediction_entropy

itca.prediction_entropy(y_true, y_pred, mapping, y_dist=None)

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

Parameters
  • y_true (numpy array, (n_samples, )) – True labels.

  • y_pred (numpy array, (n_samples, )) – Prediction labels.

  • mapping (bidict of size n_classes) – Class mapping.

Returns

The value of the prediction entropy

Return type

float