solarforecastarbiter.metrics.calculator.calculate_event_metrics

solarforecastarbiter.metrics.calculator.calculate_event_metrics(proc_fx_obs, categories, metrics)[source]

Calculate event metrics for the processed data using the provided categories and metric types.

Parameters:
Returns:

solarforecastarbiter.datamodel.MetricResult – Contains all the computed metrics by categories.

Raises:

RuntimeError – If there is no forecast, observation timeseries data or no metrics are specified.