-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
get model params while training #14531
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
Comments
This could be linked to a callback mechanism which was already a feature request which we don't have implemented for the moment. A potential discussion can be found in #10973 |
Thank you for the reply @glemaitre . I figured out a way of doing it . The result is off by a few decimal places though ... clf = SGDRegressor(max_iter=1, alpha=0.01)
coef=0
intercpt=0
for counter in range (0,100):
clf.fit(X, Y, coef_init=coef, intercept_init=intercpt )
coef = clf.coef_
intercpt = clf.intercept_
intercpts.append(intercpt)
slopes.append(coef) |
you should be using |
I was not fast enough to mention that. Basically, |
@amueller , @glemaitre thank you . got it |
Description
I am using SGDRegressor for training a model. Is there any way i can store the Bias and the Norm values for each iteration in the training loop ?
Using verbose i can see the output , I just want to store the parameters in a list. I was trying to run the regressor in a for loop as it returns an instance of itself, but that did'nt work
Can someone help me out ?
thanks....
The text was updated successfully, but these errors were encountered: