dataquestio / project-walkthroughs

Data science, machine learning, and web development project code for https://www.youtube.com/c/Dataquestio .
900 stars 1.08k forks source link

Accuracy #11

Open J3r3myPerera opened 1 year ago

J3r3myPerera commented 1 year ago

Can you give a method to get the accuracy apart from the precision score

Kalaweksh commented 1 year ago

If you want more insight into a model's predictions, sklearn.metrics.classification_report is a nice method that returns the precision, recall and f1-score as either a nicely formatted string (or a dict, if you would prefer).