-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Meaning of cross_val_score output #5
Comments
Hi @Sarwat-Fatima , If you want to know how many observations were correctly predicted, just pass normalize=False as show in the example http://scikit-learn.org/stable/modules/generated/sklearn.metrics.accuracy_score.html
@justmarkham , This is really a nice piece of tutorial series you have prepared for beginners. Thanks for that. |
@Sarwat-Fatima I assume you are asking about the output from this code:
In this case, there are 150 response values in the The 0.9666 number is the average of those 10 scores. You can multiply it by 150 and get 145, meaning 145 response values were correctly predicted. I think you were confused by code in the notebook that showed an example dataset in which there were 25 observations. The relevant data actually had 150 observations. Hope that helps! @deepish Thanks for your kind words, I'm glad you like the video series! |
Hi.
I have a question from scikit-learn-videos/07_cross_validation.ipynb. The output of the classification accuracy is usually several digits after the decimal e,g. 0.966666666667. If I multiply this value with the total number of observations i.e. 25, I will get 24.1666666667. What does this mean? That 24.1666666667 were classified correctly. Should not it give me a whole number? such as 24 maybe.
The text was updated successfully, but these errors were encountered: