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_true
np.ndarray
True values for target metric
- y_pred
np.ndarray
Predicted values for target metric
- y_true
- Returns:
float
Normalized mean absolute error.