✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
| Metric | Definition | Python Command |
|---|---|---|
| A) Accuracy | 1. Correct positive predictions out of all predicted positives | accuracy_score(y_true, y_pred) |
| B) Precision | 2. Overall correctness of the model | precision_score(y_true, y_pred) |
| C) Recall | 3. Harmonic mean of precision and recall | recall_score(y_true, y_pred) |
| D) F1-Score | 4. Correct negative predictions out of all actual negatives | f1_score(y_true, y_pred) |
| E) Specificity | 5. Correct positive predictions out of all actual positives | TN / (TN + FP) |