Menu

Comparing Evaluation Metrics

Comparing Evaluation Metrics

Visualizing the evaluation metrics helps compare their values more effectively.

Code

metrics = ['Precision', 'Recall', 'F1 Score']

scores = [precision, recall, f1]

plt.figure(figsize=(7,5))

plt.bar(metrics, scores)

plt.ylim(0,1)

plt.ylabel("Score")

plt.title("Evaluation Metrics")

plt.show()

Explanation

The bar chart provides a visual comparison of the model's Precision, Recall, and F1-Score.

Ideally, all three values should be close to 1.0, indicating strong performance.