autointent.metrics.decision_precision#
- autointent.metrics.decision_precision(y_true, y_pred)#
Calculate decision precision. Supports both multiclass and multilabel.
This function internally uses
sklearn.metrics.precision_score()
with average=macro. Refer to the scikit-learn documentation for more details.- Parameters:
y_true (autointent.metrics.custom_types.LABELS_VALUE_TYPE) – True values of labels
y_pred (autointent.metrics.custom_types.LABELS_VALUE_TYPE) – Predicted values of labels
- Returns:
Score of the decision precision
- Return type: