Metrics

class easypl.metrics.base.MetricsList(**kwargs)

List of metrics

clone()

Make a copy of the metric.

class easypl.metrics.torch.TorchMetric(metric: Metric, class_names: Optional[List] = None, **kwargs)

Wrapper for metrics from torchmetrics

metric

Metric object from torchmetrics.

Type:

Metric

class_names

Names of classes.

Type:

Optional[List]

Examples

>>> from torchmetrics import F1
... from easypl.metrics import TorchMetric
... result_metric = TorchMetric(F1(), class_names=None)