museotoolbox.stats.ComputeConfusionMatrix.__init__

ComputeConfusionMatrix.__init__(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.