Skip to content

Update tuner to allow single value parameters#1686

Merged
bchen1116 merged 9 commits into
mainfrom
bc_1625_tuner_fix
Jan 13, 2021
Merged

Update tuner to allow single value parameters#1686
bchen1116 merged 9 commits into
mainfrom
bc_1625_tuner_fix

Conversation

@bchen1116

@bchen1116 bchen1116 commented Jan 12, 2021

Copy link
Copy Markdown
Contributor

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

codecov Bot commented Jan 12, 2021

Copy link
Copy Markdown

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
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
Copy Markdown
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
Copy Markdown
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

@chukarsten chukarsten left a comment

Copy link
Copy Markdown
Contributor

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.

@jeremyliweishih jeremyliweishih left a comment

Copy link
Copy Markdown
Collaborator

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?

@bchen1116
bchen1116 requested a review from chukarsten January 13, 2021 16:38

@chukarsten chukarsten left a comment

Copy link
Copy Markdown
Contributor

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.

3 participants