nwm_metrics.metric_functions.root_mean_squared_error#

nwm_metrics.metric_functions.root_mean_squared_error(y_true, y_pred, root=True)[source]#

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

Return type:

float

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

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

  • root (bool, optional) – When False, return the mean squared error.

Returns:

Root mean squared error or mean squared error

Return type:

float