1
$\begingroup$

I would like to get the coef_ (weight vector) and the intercept_ (bias) for each iteration or training step for the sklearn.linear_model.SGDClassifier.

However, I cannot find anywhere such a functionality? Is this even possible with sklearn?

In tensorflow I could add a callback. Is there something similar available for SGDClassifier?

Thanks :)

$\endgroup$
1
$\begingroup$

You can use the partial_fit method to get the results of a single training epoch for sklearn.linear_model.SGDClassifier.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.