nwm_metrics.metric_functions.percent_bias#

nwm_metrics.metric_functions.percent_bias(y_true, y_pred, warning_msg=False)[source]#

Compute mean squared error, or optionally root mean squared error.

Return type:

float

Parameters:
  • y_true (pd.Series) – Ground truth or observations

  • y_pred (pd.Series) – Modeled values or simulations

  • warning_msg (bool, optional) – When True, display a warning message if the denominator is zero.

Returns:

Percent bias

Return type:

float