-
Notifications
You must be signed in to change notification settings - Fork 95
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
Forbidden Relations of Disabled Hyperparameters #397
Forbidden Relations of Disabled Hyperparameters #397
Conversation
…ampled because of conditions that were not met
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.
Hi, thanks a lot for the PR for the issue you raised. I'm sorry I did not get back to you but I appreciate the initiative to go and fix it!
Happy to merge this, but would you mind adding a single test-case to make sure this regression doesn't occur again?
…forbidden relations on conditioned parameters - regression test for crash
- finalize regression test
Hi! Thanks for replying. I added a unit test for the fixes I wrote. I hope they make sense, I'm not intimately familiar with the architecture of the project, but this is where I thought it made most sense to add these |
Also, since I caught your attention here :), I was hoping that perhaps you're familiar with another question I have about Do you know whether one could run I mean, I tried running the tests both with and without conda, and the same tests (2 or 3 of them) crash in both environments. Thanks, and sorry for asking this here. |
Hiyo, for now let's just consider where you implemented it as being correct :) There's probably a better place to put it but I unfortunatly don't have the bandwidth to look into it and benchmark it at the moment. As for your SMAC question, I will answer there! |
I will just run these tests and then merge it in and make a release :) Might not check back on it tonight but will do tomorrow at latest! |
Sorry last thing that seems to need to be done. Can you run |
Sure. I thought that the Look, there's one question I have about my fix. Is it possible that the |
Good question, perhaps there's a world where that could be done meaningfully, but in practice, ConfigSpace has a very concrete assumption and it is that Becuase there is conditionality, we need to somehow represent non-active inside a numpy float vector. Really your only options are to use some sentinal value, of which only 3 make sense |
Ok, well, if that convention is clear, than that's what I was concerned about. I didn't know that it has been convened to do so, although I did expect it, as it has the solid arguments that you present. I just wanted to make sure this is the case, as I'm not intimately familiar with the implementation, and I could imagine that, e.g., |
As stated in a previous comment above, I did run Anyway, I used I now ran |
All good, worst case I merge and just make another small patch to fix it to get this in. Don't want to hold you up :) |
Merged and fixed on main :) |
Released in v1.2.1 on PyPI :) |
Thanks a huge lot! P.S.: btw, I can see in the pre-commit pipeline now fails in the |
It's alright, I already took care of it, the main branch is passing with it :) Thank you though! |
Avoid evaluating forbidden relations on HPs that were disabled/not sampled because of other conditions that were not met, since retrieving
int
values (for category indices) fromnan
s fails.Fixes #396 (also see automl/SMAC3#1161).