Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Classification Report | Recognizing Handwritten Digits
Recognizing Handwritten Digits

book
Classification Report

In this chapter, we will assess the classifier we have recently trained, focusing on its performance in predicting test values.

Завдання

Swipe to start coding

Print a detailed classification report using the classification_report function from sklearn.metrics.

Рішення

from sklearn.metrics import classification_report

# Print a detailed classification report
print(classification_report(y_test, Y_pred, digits=3, output_dict=False))

Mark tasks as Completed
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 1. Розділ 8
AVAILABLE TO ULTIMATE ONLY
some-alt