7.4.2. mclearn.performance.get_beta_parameters¶
-
mclearn.performance.
get_beta_parameters
(confusion)[source]¶ Extract the beta parameters from a confusion matrix.
Parameters: confusion (array, shape = [n_classes, n_classes]) – Where entry c_{ij} is the number of observations in class i but are classified as class j. Returns: parameters – Each tuple (alpha_i, beta_i) is the parameters of a Beta distribution that corresponds to class i. Return type: array of tuples