-
Notifications
You must be signed in to change notification settings - Fork 105
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
[FeatureRequest] Option to reset already fitted model to its initial state #271
Comments
Yeah, I see your need. If it's not private, please share your K-Fold I think it could be solved as a resetting method or option, but could I ask you: do you need to reset the model only because of the problem with callbacks in #270 ? |
@rychuelektryk could you please comment on this thread? |
Hi @zaleslaw, and sorry for late response This issue is related to the callback issue I've described in other thread. Being unable to reset model weights forces me to make additional model compilation in my kfold method which also lets me set callback. Below code snippets are simplified for the sake of readability This is how my current kfold looks like
And here is how I would like it to look like
What do you think? |
Regarding reset weights, do you mean that KotlinDL should keep somewhere the initial weights (loaded from h5 model or generated by initializers) or reset the weights leads only to new random initialization without relation to previously initialized weights? I guess that in the context of usage KFold you don't need a stable copy of initial weights and resetting means just re-run of all initializers to generate new weights. Correct me if I'm wrong |
Hi,
I would like to have some kind of a clear method on a already learned model to restore it to the unlearned state. I guess it boils down to resetting model weights. Think you could add such an option in future?
My case:
In each iteration of my kfold procedure I would like to start fitting model from the beginning. I could copy the model in each iteration without copying weights but that leads to loosing already set callback and I would be forced to recompile the model for which I would need information about optimizer, metrics and loss which are not accessible from original model.
The text was updated successfully, but these errors were encountered: