MAE#

mlquantify.metrics.MAE(prev_pred, prev_real)[source]#

Compute the mean absolute error between the real and predicted prevalences.

Parameters:
prev_realarray-like of shape (n_classes,)

True prevalence values for each class.

prev_predarray-like of shape (n_classes,)

Predicted prevalence values for each class.

Returns:
errorfloat

Mean absolute error across all classes.