-
Notifications
You must be signed in to change notification settings - Fork 303
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 single Optimization Experiment #1780
Comments
@StanleyYoo thanks for raising this here! It seems like the error you received is indicating that the As a quick follow-up, it seems like your runner may be duplicating some data that is already available elsewhere on the trial, and I believe some added context on what you're trying to accomplish may help me guide you to a better solution. For instance, perhaps
you may get the dataframe you're trying to create, but without having to alter the runner and pass around extraneous data. Let me know if that helps! |
Hi @bernardbeckerman ! Thanks for your comments indeed. `class MyRunner(Runner): exp = Experiment( NUM_SOBOL_TRIALS = 5 print(f"Running Sobol initialization trials...") for i in range(NUM_SOBOL_TRIALS): for i in range(NUM_BOTORCH_TRIALS): print("Done!")` Many thanks in advance. |
It seems like you're not including the encoder per section 9 of the tutorial. If instead of
I use
this succeeds. Closing this out but please feel free to open a new issue if you need more assistance : ) |
Summary: There have been a few storage-related issues ([example](facebook#1780)). Linking to docs from error messages may help. Reviewed By: lena-kashtelyan Differential Revision: D48451133
Hi,
I have followed Tutorial and tried to save the experiment by JSON but following error occurs: ax.exceptions.storage.JSONEncodeError: Object <main.MyRunner object at 0x0000016ED79986A0> passed to
object_to_json
(of type <class 'main.MyRunner'>, module: main) is not registered with a corresponding encoder in ENCODER_REGISTRY.I have updated MyRunner class to save data as a record:
Could you please let me know what causes an error?
The text was updated successfully, but these errors were encountered: