-
Notifications
You must be signed in to change notification settings - Fork 314
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
Unable to attach trials to HierarchicalSearchSpace using service API #1025
Comments
Hi @ailitw! You definitely can attach parameters, they'd just need to abide by the hierarchical structure of your search space. So for example, if your "cat1" parameter evaluates to "x1", the parameterization you attach as a trial should have the parameters that depend on that value –– {"x1"}, but not the ones that depend on other values –– {"x2", "x3"}. So the parameterization that will succeed will be: In other words, a parameter "x2" depending on "cat1" having the value of "x2" means that parameter "x2" is not expected to appear in the parameterization unless "cat1" takes on the value of "x2" in that parameterization. Let me know if that does not resolve the issue for you! |
Hi @lena-kashtelyan , thanks for the response!
The error comes from this line in Line 1697 in aad4cda
It seems to loop through ALL parameters (not just the ones that match the hierarchical structure) in the search space to check that the supplied parameter values match. |
Oh I'm so sorry I misunderstood you. This is a bug and should be an easy fix, we'll take care of it shortly : ) |
The fix for this (and another issue with using HSS in combination with attaching trials) has been shipped; we'll close this issue once a stable version of Ax with the fix has been released. |
New stable version of Ax, 0.2.7, is now out, and it should resolve this –– example in #1025 (comment) should be working now. @ailitw, please let us know if it still doesn't (and please reopen the issue in that case, so we see your response)! |
Hey,
I am testing the recently added HierarchicalSearchSpace (#140) for my use case.
However, I discovered that it is not possible to attach trials using the service API. Below is a simple example and all the formats I tried. I believe the issue lies in
AxClient()._validate_search_space_membership
.The text was updated successfully, but these errors were encountered: