get_real_prev#

mlquantify.utils.general.get_real_prev(y) dict[source]#

Get the real prevalence of each class in the target array.

Parameters:
ynp.ndarray or pd.Series

Array of class labels.

Returns:
dict

Dictionary of class labels and their corresponding prevalence.