Coverage for adrs/performance/metric/metric.py: 100%

3 statements  

« prev     ^ index     » next       coverage.py v7.15.2, created at 2026-08-29 04:01 +0800

1import polars as pl 

2from abc import abstractmethod 

3 

4 

5class Metrics[T: dict]: 

6 @abstractmethod 

7 def compute(self, df: pl.DataFrame) -> T: 

8 """Evaluate the metric.""" 

9 raise NotImplementedError("Metrics is not implemented.")