Loading metrics with evaluate
Metrics are needed to evaluate the performance of LLMs, similar to classic machine learning models. The evaluate
library helps to understand the complexities of LLMs. Start by loading the metrics that can be used to assess classification models.
The evaluate
library has already been loaded for you.
This exercise is part of the course
Introduction to LLMs in Python
Exercise instructions
- Load the accuracy, precision, recall, and F1 score metrics.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Load the metrics
accuracy = ____
precision = ____
recall = ___
f1 = ____