scikit-learn 1 · Evaluation and tuning

Get precision, recall and F1

Print per-class precision, recall, F1 and support.

from sklearn.metrics import classification_report

print(classification_report(y_test, predictions))

Official scikit-learn 1 documentation

More evaluation and tuning commands

All evaluation and tuning commands · scikit-learn 1 cheatsheet

Was this page helpful?