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 not None, a deadband equal to the uncertainty will be used by the metrics that support it.

  • 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.

list – List of datamodel.MetricResult for each datamodel.ProcessedForecastObservation