Re: [scikit-learn] Difference in prediction accuracy using SGDClassifier and Cross validation scores.

2019-03-12 Thread Joel Nothman
You are calculating recall, not accuracy. On Sun, 10 Mar 2019 at 05:36, Rajnish kamboj wrote: > > Hi > > I have recently started machine learning and it is my first query regarding > prediction accuracy. > > There is difference in prediction accuracy using SGDClassifier and Cross > validation

[scikit-learn] Difference in prediction accuracy using SGDClassifier and Cross validation scores.

2019-03-09 Thread Rajnish kamboj
Hi I have recently started machine learning and it is my first query regarding prediction accuracy. There is difference in prediction accuracy using SGDClassifier and Cross validation scores. import numpy as np from sklearn.datasets import fetch_openml from sklearn.linear_model import