nwm_metrics.metric_functions.categorical_score#
- nwm_metrics.metric_functions.categorical_score(y_true, y_pred, threshold)[source]#
Compute probability of detection (POD), probability of false_alarm (FAR), cirtical success index (CSI) and frequency bias (FBIAS).
- Return type:
Dict[str,float]- Parameters:
y_true (pd.Series) – Ground truth or observations
y_pred (pd.Series) – Modeled values or simulations
threshold (float) – threshold value for categorizing observations and simulations.
- Returns:
Dictionary of categorical score values