Vurdering af binære klassifikatorer

term_id: evaluation_of_binary_classifiers

Category: basic_concepts

Definition

Dette felt involverer analyse af metrikker såsom nøjagtighed (accuracy), præcision, recall, F1-score og Area Under the Receiver Operating Characteristic Curve (AUC-ROC). Det hjælper med at bestemme, hvor godt en model distinktionsevne er.

Summary

Processen med at vurdere præstationen af maskinlæringsmodeller, der forudsiger en af to mulige udfald.

Key Concepts

  • Forvekslingsmatrix (Confusion Matrix)
  • Præcision-Recall tradeoff
  • ROC-kurve
  • F1-score

Use Cases

  • Medicinsk screensning af sygdomme
  • Filtrering af spam-emails
  • Vurdering af kreditrisiko

Code Example

1
2
from sklearn.metrics import classification_report
print(classification_report(y_true, y_pred))