autointent.metrics.scoring_f1#
- autointent.metrics.scoring_f1(labels, scores)#
Calculate the F1 score for multiclass and multilabel classification.
This function computes the F1 score by using
autointent.metrics.decision.decision_f1()
to evaluate decisions.- Parameters:
labels (autointent.metrics.custom_types.LABELS_VALUE_TYPE) – Ground truth labels for each sample
scores (autointent.metrics.custom_types.SCORES_VALUE_TYPE) – For each sample, this list contains scores for each of n_classes classes
- Returns:
F1 score
- Return type: