-
Notifications
You must be signed in to change notification settings - Fork 390
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
Train with Skorch +GridSearchCV and test with Pytorch #946
Comments
Not exactly, but almost.
net = NeuralNet(...)
gs = GridSearchCV(net, ..., refit=True)
gs.fit(X, y)
gs.best_estimator_ # <= the best skorch net
gs.best_estimator_.module_ # the pytorch module of the best net Note: This is not 100% identical to the best model encountered during the search. The difference is that this model will be fitted on 100% of It would be possible to store copies of each fitted net on disk using the |
@BenjaminBossan , It would be good to convert such issues into discussion, no? |
Thank you very much :D Regards Adrien |
What would be the advantage? |
Less confusion for developers and users? |
I'll try it out for new issues that would be a better fit for Discussions, but I'll let the old ones as they are. |
Dear all,
Thank you very much for this very useful library !
I would like to know if it is possible to train a model with Skorch+GridSearchCV
and then
to get the pytorch model trained with the best parameters of the GridSearchCV
regards
Adrien
The text was updated successfully, but these errors were encountered: