nicetoolbox.evaluation.metrics.base_metric.MetricHandler¶
- class nicetoolbox.evaluation.metrics.base_metric.MetricHandler(cfg: EvaluationMetricType, device: str)[source]¶
Bases:
ABCAbstract base class for a metric handler (e.g., PointCloudMetric). A handler creates and manages one or more base Metric instances.
Initialize the metric handler with its config and device, creating its metrics.
- Parameters:
cfg (MetricTypeConfig) – Configuration for this metric type.
device (str) – Device to run the metrics on (e.g., ‘cpu’ or ‘cuda’).
Methods
Compute final results from all managed metrics.
Process a homogeneous, grouped batch of data for all managed metrics.
Attributes
The name of the metric handler (e.g., 'point_cloud_metrics').
- evaluate() Dict[Tuple[str, str, str], List[BatchResult] | AggregatedResult][source]¶
Compute final results from all managed metrics.
- abstract property name: str¶
The name of the metric handler (e.g., ‘point_cloud_metrics’).