PrecisionRecall#

class openstef_beam.metrics.PrecisionRecall(precision, recall)[source]#

Bases: NamedTuple

Container for precision and recall metrics.

This class holds the fundamental classification metrics used to evaluate peak detection performance in energy forecasting applications.

Variables:
  • precision – The fraction of predicted peaks that were actual peaks. Range [0, 1] where 1.0 is perfect precision.

  • recall – The fraction of actual peaks that were correctly predicted. Range [0, 1] where 1.0 is perfect recall.

Note

High precision means few false alarms, while high recall means few missed peaks. There is often a trade-off between these metrics.

precision: float#

Alias for field number 0

recall: float#

Alias for field number 1