MulaiMulai sekarang secara gratis

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.

Latihan ini adalah bagian dari kursus

Introduction to LLMs in Python

Lihat Kursus

Petunjuk latihan

  • Load the accuracy, precision, recall, and F1 score metrics.

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Load the metrics
accuracy = ____
precision = ____
recall = ___
f1 = ____
Edit dan Jalankan Kode