Classification Report
In this chapter, we will assess the classifier we have recently trained, focusing on its performance in predicting test values.
Tehtävä
Swipe to start coding
Print a detailed classification report using the classification_report
function from sklearn.metrics.
Ratkaisu
9
1
2
3
4
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
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 1. Luku 8
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme