nmae#

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

Calculate the Normalized Mean Absolute Error (NMAE).

Normalization allows for comparison across different data sets and methodologies.

Parameters:
y_truenp.ndarray

True values for target metric

y_prednp.ndarray

Predicted values for target metric

Returns:
float

Normalized mean absolute error.