-
-
Notifications
You must be signed in to change notification settings - Fork 7
fix ParamSet$check when deps are fulfilled only in defauts #260
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
Conversation
|
i added some comments docs and tests. note that i had to change some existing tests (slightly) |
|
I have the gut feeling that we are trying to fix something here where we intentionally decided to not do it.
|
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.
Spelling (at least) (see comments)
well, get on mattermost or describe in the issue what i am supposed to do intead. i wrote in the issue that i am also not very fond of this.... |
what exactly do you mean? do you want to iterate isnt that easier? |
|
also note that travis isnt green and i dont know why |
|
I can reproduce the Travis issue locally when running Looks like an issue triggered by |
why dont i get this? |
i found the bug by looking at the diffs / travis / messages and thinking. i fixed it now, travis really found an honest bug. but i am really worried that i still cannot see this locally. the bug is basically and instance where i get a logical vec of length 2, and then do an "if(foo)" on this, so it should have been a vector of length 1. doesnt R at least in these instances issue warning? @mllg |
Codecov Report
@@ Coverage Diff @@
## master #260 +/- ##
==========================================
+ Coverage 95.4% 95.44% +0.03%
==========================================
Files 20 20
Lines 501 505 +4
==========================================
+ Hits 478 482 +4
Misses 23 23
Continue to review full report at Codecov.
|
|
spelling: your general concerns: |
|
Why this is potentially bad: My preferred solution: If I want to use a parameter that depends on another parameter I have to set the other parameter.
I still think we already had this discussion. |
|
Also: How do we deal with concurrent settings in |
not sure, at leat we had a very similar one. i think what we discussed was more state-changes of the param-values list. this only concerns feasibility checks. anyway thx for your longer post. i am tending to begin to agree with you. @mllg @mb706 wha do you think? pls post soon your opinion. if we follow @jakob-r, we would need to clean up / improve messages and docs about this stuff. |
Yes. But it should be fairly simple to check whether a ParamSet has a dependency that can not be resolved. e.g. when the |
i dont think this is hard to do. the code is nearly there already. for each param B we know wether there is a condition which has this param as parent. if the parent is not present in the set, we can generate an error. that check function can live in paradox. whether we call it in the constructor of the param set or in the TuningInstance, i dont know. why not in the constructor of the PS? otherwise such a set is never valid right? |
Because the learner PS is not present then. |
but we dont currently use this for anything? |
The requirements are encoded in the learner PS but not in the tuning PS? (Are we talking past each other?) |
|
I added an alternative solution in #262. Feedback is welcome @berndbischl @mllg @pat-s |
|
Proposal: Close this issue (we now have a better error message) |
docs and unit tests are still missing