Skip to main content

Table of Contents

ModelMetrics Objects

class ModelMetrics()

Container class for various model-related metrics

Attributes:

  • confusion_matrix ConfusionMatrix - ConfusionMatrix which keeps it track of counts with NumberTracker
  • regression_metrics RegressionMetrics - Regression Metrics keeps track of a common regression metrics in case the targets are continous.

compute_confusion_matrix

 | compute_confusion_matrix(predictions: List[Union[str, int, bool, float]], targets: List[Union[str, int, bool, float]], scores: List[float] = None, target_field: str = None, prediction_field: str = None, score_field: str = None)

computes the confusion_matrix, if one is already present merges to old one.

Arguments:

predictions (List[Union[str, int, bool]]): targets (List[Union[str, int, bool]]): scores (List[float], optional): target_field (str, optional): prediction_field (str, optional): score_field (str, optional):

merge

 | merge(other)

:type other: ModelMetrics

Prefooter Illustration Mobile
Run AI With Certainty
Get started for free
Prefooter Illustration