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: - proc_fx_obs (datamodel.ProcessedForecastObservation) –
- categories (list of str) – List of categories to compute metrics over.
- metrics (list of str) – List of metrics to be computed.
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.