I am confused about fit()
and partial_fit()
method of SGDClassifier
. Documentation says for both, "Fit linear model with Stochastic Gradient Descent.".
What I know about stochastic gradient descent is, it takes one (or a fraction of whole) training example to update parameters of model in one iteration. And gradient descent uses whole data set in each iteration. I want to train a model using logistic regression. I want to implement normal Gradient Descent and Stochastic gradient descent and compare time required for them. How to do that with SGDClassifier
? Does fit()
method works as normal gradient descent?