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
- Measure accuracy
- See where the model is wrong
- Evaluate a regression model
- Cross-validate
- Tune hyperparameters
- See which features matter
All evaluation and tuning commands · scikit-learn 1 cheatsheet