Metrics
- class stambo.metrics.Metric(metric, int_input=False)[source]
Bases:
objectA wrapper for metrics that take predictions and ground truth labels as two arguments.
- __call__(sample)[source]
The call method. This runs the metric on the supplied data. If the metric is meanto to be run on integer input. it wil use the argmaxed predictions that are stored by the PredSampleWrapper object.
- Parameters:
sample (PredSampleWrapper) – Data on which the metric is computed.
- Returns:
Metric value for the provided sample.
- Return type:
- class stambo.metrics.ROCAUC[source]
Bases:
MetricThe ROC-AUC metric. Defined for Binary classifiers.
- class stambo.metrics.AP[source]
Bases:
MetricThe Average Precision metric. Defined for Binary classifiers.