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_truenp.ndarray

True values for target metric

y_prednp.ndarray

Predicted values for target metric

Returns:
float

Normalized root mean square error.