solarforecastarbiter.metrics.calculator.calculate_metrics¶
-
solarforecastarbiter.metrics.calculator.
calculate_metrics
(processed_pairs, categories, metrics)[source]¶ Loop through the forecast-observation pairs and calculate metrics.
Normalization is determined by the attributes of the input objects.
If
processed_fx_obs.uncertainty
is notNone
, a deadband equal to the uncertainty will be used by the metrics that support it.Parameters: - processed_pairs – List of datamodel.ProcessedForecastObservation
- categories (list of str) – List of categories to compute metrics over.
- metrics (list of str) – List of metrics to be computed.
Returns: list – List of datamodel.MetricResult for each datamodel.ProcessedForecastObservation