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
Update tuner to allow single value parameters #1686
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1686 +/- ##
=========================================
+ Coverage 100.0% 100.0% +0.1%
=========================================
Files 240 240
Lines 18652 18658 +6
=========================================
+ Hits 18644 18650 +6
Misses 8 8
Continue to review full report at Codecov.
|
@@ -129,7 +137,6 @@ def test_skopt_tuner_invalid_parameters_score(): | |||
tuner.add({'Mock Classifier': {'param a': 0, 'param b': 1.0, 'param c': 'option a'}}, np.inf) | |||
tuner.add({'Mock Classifier': {'param a': 0, 'param b': 1.0, 'param c': 'option a'}}, None) | |||
tuner.propose() | |||
print(random_state) |
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.
remove unnecessary print statements
It seems you have a exception in grid_search_tuner that is uncovered by some of the tests you dropped. It's only one line but you can find it in the codecov.io coverage changes. |
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.
I think you might just need to address the uncovered exception and this is gucci.
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.
Looks great to me but could you add coverage making sure that the tuners can propose
with single values as well?
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.
Nice, thanks!
first step to solve #1625
We want to allow tuners to accept single values as input; however, we will not add these values to the search space. These values are then treated as fixed values. We use this to help with the implementation for #1625