F1-Score
Der F1-Score ist ein statistisches Maß, das verwendet wird, um die Leistung eines classification model, particularly in scenarios where the class distribution is imbalanced. It serves as a balance between precision and recall, providing a single metric that captures both false positives and false negatives.
Präzision ist das Verhältnis der richtig positiven Vorhersagen zu den insgesamt vorhergesagten Positiven und zeigt an, wie viele der vorhergesagten positiven Fälle tatsächlich korrekt waren. Recall hingegen ist das Verhältnis der richtig positiven Vorhersagen zu den tatsächlichen Positiven und misst, wie viele der tatsächlichen positiven Fälle vom Modell korrekt erkannt wurden.
Der F1-Score wird mit der Formel berechnet:
F1 = 2 * (Precision * Recall) / (Precision + Recall)
Diese Formel hebt hervor, wie der F1-Score das harmonisches Mittel of precision and recall, which means it tends to be lower when either precision or recall is low. This property makes it particularly useful in situations where one metric cannot be sacrificed for the other, ensuring that both the accuracy of positive predictions and the model’s ability to capture actual positive instances are taken into account.
The F1 Score ranges from 0 to 1, where 1 indicates perfect precision and recall (all positive predictions are correct, and all positive cases are identified), while a score of 0 indicates the worst performance. It is widely used in fields such as der Verarbeitung natürlicher Sprache, medical diagnosis, and fraud detection, where the cost of false positives and false negatives can significantly impact outcomes.