solarforecastarbiter.metrics.event.probability_of_detection¶
-
solarforecastarbiter.metrics.event.
probability_of_detection
(obs, fx)[source]¶ Probability of Detection (POD).
\[\text{POD} = \text{TP} / (\text{TP} + \text{FN})\]Parameters: - obs ((n,) array-like) – Observed event values (True=event, False=no event).
- fx ((n,) array-like) – Forecasted event values (True=event, False=no event).
Returns: pod (float) – The POD of the forecast.
Raises: RuntimeError
– If there is no forecast or observation timeseries data, or the forecast and observation timeseries data do not have the same length.