nrmse#

pymc_marketing.metrics.nrmse(y_true, y_pred)[source]#

Calculate the Normalized Root Mean Square Error (NRMSE).

Normalization allows for comparison across different data sets and methodologies. NRMSE is one of the key metrics used in Robyn MMMs.

Parameters:
  • y_true (ndarray) – True values for target metric

  • y_pred (ndarray) – Predicted values for target metric

Return type:

float

Returns:

Normalized root mean square error.