Metrics
- class easypl.metrics.base.MetricsList(dist_sync_on_step: bool = False, compute_on_step: bool = True)
List of metrics
- clone()
Make a copy of the metric.
- class easypl.metrics.torch.TorchMetric(metric: Metric, class_names: Optional[List] = None)
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)