nwm_eval.calc_metrics.func_calc_metrics#

nwm_eval.calc_metrics.func_calc_metrics(df, 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:
  • df – DataFrame 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.