autointent.metrics.decision.decision_f1#

autointent.metrics.decision.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.custom_types.ListOfGenericLabels) – True values of labels

  • y_pred (autointent.custom_types.ListOfGenericLabels) – Predicted values of labels

Returns:

Score of the decision F1 score

Return type:

float