autointent.metrics.decision_f1#
- autointent.metrics.decision_f1(y_true, y_pred)#
Calculate decision f1 score. Supports both multiclass and multilabel.
This function internally uses
sklearn.metrics.f1_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 accuracy
- Return type: