MENU

Fun & Interesting

CLASSIFICATION REPORT with Scikit-Learn (Python) - sklearn.metrics.classification_report

Video Not Working? Fix It Now

In this tutorial, you will learn how to use the classification report in python using Scikit-Learn. Original Tutorial: https://www.jcchouinard.com/classification-report-in-scikit-learn/ ## What is a Classification Report A Classification Report is used to compute the accuracy of a classification model based on the values from the confusion matrix. ### Sklearn `classification_report()` In Scikit-learn, `classification_report()` function from `sklearn.metrics` module is used to return a classification report. from sklearn.metrics import classification_report print(classification_report(y_test, y_pred)) ----- Install Python: - MacOS: https://www.jcchouinard.com/install-python-on-macos/ - Windows: https://www.jcchouinard.com/install-python-on-windows/ - Anaconda: https://www.jcchouinard.com/install-python-with-anaconda-on-windows/ Subscribe to my Python Course waitlist: https://ba995fe7.sibforms.com/serve/MUIEAPv50TFkNuoknCNvzRUKLLhvvZd5jzCwEZvi9BNjtkhVuEtLpEG58-Khdquyg9v5V-1qeGDwIXy739I4eFIVcCqeqqV3UUisW_-hAd5ljC1dGMrQvXHC7JvORh9TbnLA1CHqWro4N7YVZ4730-D5dXGxqd3CbaVHSJpS5fyylPMVzCe1_y9xOTl2-CsvEuhO01E0Ytv59HEJ Support my work: https://www.buymeacoffee.com/jcchouinard Subscribe to this channel: https://www.youtube.com/channel/UCthJJqyUGdI5EA0YjnjXthw?sub_confirmation=1 Follow me: https://twitter.com/ChouinardJC https://www.linkedin.com/in/jeanchristophechouinard/ https://www.buymeacoffee.com/jcchouinard https://www.youtube.com/channel/UCthJJqyUGdI5EA0YjnjXthw?sub_confirmation=1

Comment