nwm_eval.calc_metrics.calc_nwm_eval_metrics#
- nwm_eval.calc_metrics.calc_nwm_eval_metrics(pairs, metrics, threshold_categorical={'type': 'quantile', 'value': 0.9}, threshold_event={'type': 'quantile', 'value': 0.9})[source]#
Calculate nwm.eval metrics for a given dataframe of paired data.
- Return type:
DataFrame- Parameters:
pairs – Path to the parquet file containing paired data.
metrics – List of metric names to calculate.
threshold_categorical – Threshold for categorical metrics.
threshold_event – Threshold for event-based metrics.
- Returns:
A DataFrame containing the calculated metrics for each location and lead group.