-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
How to save and load model #1603
Comments
We've converted to Keras as our backend, so we're just using the Keras save/load functionality. I believe that these errors (which may have been with our custom TensorGraph code) should no longer occur. I'm going to close this issue, but please re-open if you're still facing problems. |
Please add an example. |
So if you have a model, you can just call
And the model will automatically be saved to "/place/to/save/your/model". To reload the model you can do
And you're all set! |
how can i reload the model that saved using model.restore() |
Hello,
I'm trying to train a multitask regression using the same approach posted here:
https://github.com/deepchem/deepchem/blob/master/examples/notebooks/Multitask_Networks_on_MUV.ipynb.
Everything works fine until I need to save and load the model to make predictions. However when I load my model using the approach posted here
#650 (comment)
the evaluation results are completely different. Here's a sample output:
Best neural network prior to saving:
Loaded model:
As you can see the metrics are worse after loading the model.
Am I doing it the wrong way? Is there another way to save and load the model for predictions?
The text was updated successfully, but these errors were encountered: