A continuaciónSiguiente guía
Pruebas de recuperación, precisión y elusión en la revisión de documentos
Técnico
GUÍA Técnica
La precisión promedio resume la precisión de un modelo a medida que la recuperación aumenta a través de los umbrales de decisión.
Escuche esta guíaNarrado por IA · ~3 min
Precision-recall curves are useful when positive cases are rare, but average precision and a trapezoidal area under that curve are different calculations that should be named clearly.
Precision asks how many selected cases are positive. Recall asks how many of all positive cases have been selected. As a model's score threshold is lowered, more cases enter the selected set. Recall cannot decrease as the threshold is lowered, but precision can rise or fall depending on the newly included cases. A precision-recall curve traces this tradeoff. It is especially informative for a rare positive class because it directly exposes how many selected items are false alarms. A receiver operating characteristic curve answers a different question using the false-positive rate, whose denominator includes all actual negatives. Neither view removes the need to consider real decision costs. Average precision summarizes the precision-recall relationship by weighting precision values by the corresponding increases in recall. In a simple ranking without tied scores, it equals the average precision at the ranks occupied by positive cases. Suppose the only two positives appear first and third. The precisions at those positions are one and two-thirds, so average precision is about 0.833. The label PR-AUC can be ambiguous. Some reports mean trapezoidal integration of precision against recall; others use it loosely for average precision. Scikit-learn distinguishes average_precision_score from auc, which applies the trapezoidal rule. These values can differ because the interpolation assumptions differ. State the actual calculation. Precision depends on the prevalence of positives in the evaluation population. A score from a balanced sample may not describe a deployment setting where positives are rare. Report the positive fraction and evaluation design. Finally, a summary across thresholds does not select an operating threshold. Inspect the precision, recall and workload at the point where the model will actually be used.
A review queue contains many ordinary items and a few relevant ones. A precision-recall curve shows the tradeoff between finding more relevant items and asking reviewers to inspect more irrelevant ones.
In a hypothetical ranking with no tied scores, the two positive cases appear first and third. Precision at those positions is 1 and two-thirds, so average precision is about 0.833.
A team uses scikit-learn's average_precision_score on labels and prediction scores. It records which class counts as positive and avoids replacing the scores with hard decisions before evaluation.
Two evaluation datasets contain different proportions of positive cases. An analyst reports those proportions before comparing precision-recall results, since prevalence changes how precision should be interpreted.
Evaluation dashboards can make ranking metrics clearer by showing the positive prevalence, exact area calculation and practical operating points next to the summary score. A review team may care most about how many useful cases appear within a fixed daily capacity, while another team may need a minimum recall. Preserving predictions and labels allows those questions to be revisited without changing the model. As populations shift, teams should reevaluate the tradeoff on representative data rather than assume an earlier average-precision result guarantees the same future workload or usefulness.
Boletín gratuito
Tres noticias verificadas sobre IA cada mañana de lunes a viernes, explicadas con claridad. Gratis para siempre y sin anuncios.
Un correo cada día laborable. Date de baja con un clic. Nunca vendemos ni compartimos tu dirección.
Ponte a prueba
Corrección inmediata en cada respuesta y un certificado para compartir, con un ID verificable, cuando apruebas un curso.
Apoya la educación gratuita sobre IA. AI Understanding es una organización sin fines de lucro 501(c)(3): sin anuncios ni muros de pago, nunca. Hacer una donación
Average precision summarizes a model's precision as recall increases across decision thresholds. Precision-recall curves are useful when positive cases are rare, but average precision and a trapezoidal area under that curve are different calculations that should be named clearly.
La precisión mide la pureza del conjunto seleccionado; El recuerdo mide la proporción de todos los resultados positivos que se encontraron.
La precisión es de uno en el primer positivo y de dos tercios en el segundo. Su promedio es de cinco sextos, aproximadamente 0,833.
La precisión promedio pondera la precisión mediante incrementos de recuperación, mientras que la integración trapezoidal conecta puntos de la curva utilizando una construcción de área diferente.
Las puntuaciones permiten la evaluación a través de umbrales. Las decisiones difíciles retienen sólo un punto operativo y descartan la mayor parte de la información de clasificación.
La precisión depende de la prevalencia de clase, por lo que las poblaciones y los esquemas de muestreo son un contexto necesario.
sigue aprendiendo
Más guías seleccionadas para este tema.
A continuaciónSiguiente guía
Pruebas de recuperación, precisión y elusión en la revisión de documentos
Técnico