8000 get model params while training · Issue #14531 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content
get model params while training #14531
Closed
Closed
@anshdavid

Description

@anshdavid

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

clf = SGDRegressor(max_iter=1, alpha=alpha)                                                                                              
for counter in range (0,epochs):
    clf.fit(X, Y)
    print("slope {0}, intercept {1}".format(clf.coef_, clf.intercept_))

Can someone help me out ?
thanks....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0