Skip to content
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

Merged
merged 9 commits into from Jan 13, 2021
Merged

Conversation

bchen1116
Copy link
Contributor

@bchen1116 bchen1116 commented Jan 12, 2021

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

@codecov
Copy link

codecov bot commented Jan 12, 2021

Codecov Report

Merging #1686 (a5d36db) into main (f49c327) will increase coverage by 0.1%.
The diff coverage is 100.0%.

Impacted file tree graph

@@            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             
Impacted Files Coverage Δ
evalml/tuners/grid_search_tuner.py 97.7% <ø> (-<0.1%) ⬇️
evalml/tests/tuner_tests/test_grid_search_tuner.py 100.0% <100.0%> (ø)
...alml/tests/tuner_tests/test_random_search_tuner.py 100.0% <100.0%> (ø)
evalml/tests/tuner_tests/test_skopt_tuner.py 100.0% <100.0%> (ø)
evalml/tuners/random_search_tuner.py 95.2% <100.0%> (+0.3%) ⬆️
evalml/tuners/skopt_tuner.py 100.0% <100.0%> (ø)
evalml/tuners/tuner.py 100.0% <100.0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f49c327...a5d36db. Read the comment docs.

@bchen1116 bchen1116 self-assigned this Jan 12, 2021
@@ -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)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove unnecessary print statements

@bchen1116 bchen1116 marked this pull request as ready for review January 12, 2021 22:18
@chukarsten
Copy link
Contributor

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.

@chukarsten chukarsten self-requested a review January 12, 2021 22:55
Copy link
Contributor

@chukarsten chukarsten left a 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.

Copy link
Contributor

@jeremyliweishih jeremyliweishih left a 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?

Copy link
Contributor

@chukarsten chukarsten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks!

@bchen1116 bchen1116 merged commit 00eac40 into main Jan 13, 2021
@bchen1116 bchen1116 mentioned this pull request Jan 26, 2021
@freddyaboulton freddyaboulton deleted the bc_1625_tuner_fix branch May 13, 2022 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants