nicetoolbox.evaluation.metrics.base_metric.BaseMetric

class nicetoolbox.evaluation.metrics.base_metric.BaseMetric(metrics_config: BaseMetricConfig, config_handler: ConfigHandler)[source]

Bases: ABC

Base class for all evaluation metrics.

Each metric is self-contained: receives its config, loads its own data, computes results, and returns a MetricResult.

Parameters:
  • metrics_config – Metric-specific configuration.

  • config_handler – Shared config handler with project and evaluation configs.

Methods

compute

Execute the metric end-to-end: load data, compute, return results.

Attributes

metric_name

metric_config

config_handler

abstract compute() MetricResult[source]

Execute the metric end-to-end: load data, compute, return results.

Returns:

MetricResult containing summary tables, per-frame arrays, and plots.