lir.aggregation.metrics_csv module
- class lir.aggregation.metrics_csv.WriteMetricsToCsv(path: Path, columns: Mapping[str, Callable])[source]
Bases:
AggregationHelper class to write aggregated results to CSV file.
- Parameters:
path (Path) – The path to the CSV file where the metrics will be written.
columns (Mapping[str, Callable]) – A mapping of column names to metric functions that compute the values for those columns.
- report(data: AggregationData) None[source]
Write the metrics to CSV.
- Parameters:
data (AggregationData) – The aggregated data for which to compute and write the metrics.