ComputeConfusionMatrix

class museotoolbox.stats.ComputeConfusionMatrix(yp, yr, kappa=False, OA=False, F1=False)[source]

Compute confusion matrix given label predicted and label reality.

Parameters
  • yp (array.) – The label predicted.

  • yr (array.) – The label truth.

  • kappa (bool, default False.) – If true, computes kappa.

  • OA (bool, default False.) – If True, computes Overall Accuracy.

  • F1 (bool, default False.) – If True, computes F1-Score per class.

Methods

__init__(yp, yr[, kappa, OA, F1])

Compute confusion matrix given label predicted and label reality.