-
Notifications
You must be signed in to change notification settings - Fork 15
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
Allow attaching past evaluations that are outside of the current parameter range #185
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello! I tried this today and it worked, but I found some issues (which might not be directly related with this PR):
- I could resume the optimization with changes in the parameters range with no problem. However, I realized that I wanted to use
fit_out_of_design=True
(instead of the default, which isFalse
). So I canceled the run and started over. This time the history file was different and contained the cancelled simulations from the previous resume attempt. I had to remove manually these entries from the history file, rename it and revert the changes in the parameters ranges inexploration_parameters.json
to start over adequately. - Building models with
AxModelManager
from the history file does not work in this case at the moment. It is complaining about points out of range. I guess that we will have to implement the same workaround here too.
for more information, see https://pre-commit.ci
With regards to my first comment, I wonder if it would be a good idea to backup automatically the history file from which the exploration run is resuming. Previous versions had a feature like this if I recall well. About the other point, I just added a commit where the same strategy for considering (or not) trials with parameters outside the design range is replicated in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR approved from my side after the addition of one commit.
Please check before pulling.
A unit test is failing here:
This happens when the exploration resumes with Could the expected behavior be in conflict with the changes implemented here? -> #207 |
I have made additional checks and it seems that this issue is always present when one resumes an optimas run. |
Thanks for adding I will have a look at the other issues. |
Ok, this issue should be fixed now. |
I think that saving a backup (or just using a different name for the history file after resume) could indeed be a good idea. Otherwise it will always be overwritten and can lead to issues like the one you describe. This should be the focus of a future PR. |
This enables, among others, the possibility of resuming an old exploration with an updated range of the varying parameters.
Previously, trying to add trials outside of the current design space when using and
AxServiceGenerator
would fail because the AxClient would not allow it. In this PR, this workaround is used whenfit_out_of_design=True
so that trials outside of the current range will still contribute to the surrogate model.When
fit_out_of_design=False
(default), the out-of-range trials will be ignored by the generator and the user will be informed about it.