-
Notifications
You must be signed in to change notification settings - Fork 312
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 properly save and load an experiment #76
Comments
Hello, @arvieFrydenlund! Re: your second question, thank you for pointing that out, we will update |
Hey, @arvieFrydenlund, we tried to repro the bug you are getting, and coudn't get the same issue to come up. Would you mind sharing your full notebook? |
This should work as a minimum example. However, if you then delete the save, run it again but kill the process (or add say if i == 5: exit() in the last loop), then try to run it again (which should load the trails that had been completed before the kill) I then get that error.
|
Summary: This is a fix for #76 -- basically there were two separate issues, but both had to do with JSON encoding not working properly. Reviewed By: kkashin Differential Revision: D15314286 fbshipit-source-id: 92bafd5d462562d1fa671992cba72133155dd0a2
Hey, I did a new pull and the minimum example still breaks, though in a different way now (but the status is now correct though). However I'm not sure if its just me who is doing this wrong or if its an issue on your end? Is simple experiment not the way to go for this? If I run it the first time with if i == 5: exit(), then rerun it without that I now get
|
Hey @arvieFrydenlund -- sorry, I forgot to mention this! It's a simple fix on your end. After you load the experiment from the json file, you'll just need to re-set the evaluation function, e.g.
We don't store evaluation functions, since function serialization is a difficult problem. We should make this more clear though :) |
Closing, since this should be fixed in our current release. |
I have a modified version of this https://botorch.org/tutorials/custom_botorch_model_in_ax
where I have saved the experiment after each call to get_botorch.
If that loop gets interupted, I want to be able to reload the experiment and restart the loop from where it left off. However I get his issue:
After the first get_botorch call after I try to load up again.
Also I noticed that the trail status always seems to be 'status=TrialStatus.RUNNING' and never completed? Do I manually need to set trials to completed?
Thanks.
The text was updated successfully, but these errors were encountered: