autointent.metrics.scoring.scoring_precision#

autointent.metrics.scoring.scoring_precision(labels, scores)#

Calculate precision for multiclass and multilabel classification.

This function computes precision by using autointent.metrics.decision.decision_precision() 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:

Precision score

Return type:

float