normalized_absolute_error#

mlquantify.evaluation.measures.normalized_absolute_error(prev_real, prev_pred)[source]#

Compute the normalized 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

Normalized absolute error across all classes.