autointent.metrics.scoring#

Scoring metrics for multiclass and multilabel classification tasks.

Attributes#

Classes#

ScoringMetricFn

Protocol for scoring metrics.

Functions#

scoring_log_likelihood(labels, scores[, eps])

Supports multiclass and multilabel cases.

scoring_roc_auc(labels, scores)

Supports multiclass and multilabel cases.

scoring_accuracy(labels, scores)

Calculate accuracy for multiclass and multilabel classification.

scoring_f1(labels, scores)

Calculate the F1 score for multiclass and multilabel classification.

scoring_precision(labels, scores)

Calculate precision for multiclass and multilabel classification.

scoring_recall(labels, scores)

Calculate recall for multiclass and multilabel classification.

scoring_hit_rate(labels, scores)

Calculate the hit rate for multilabel classification.

scoring_neg_coverage(labels, scores)

Supports multilabel classification.

scoring_neg_ranking_loss(labels, scores)

Supports multilabel.

scoring_map(labels, scores)

Calculate the mean average precision (MAP) score for multilabel classification.

Module Contents#

autointent.metrics.scoring.logger#