-
Notifications
You must be signed in to change notification settings - Fork 87
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
Move list_model_families to avoid circular dependencies #959
Conversation
Codecov Report
@@ Coverage Diff @@
## main #959 +/- ##
==========================================
- Coverage 99.87% 99.87% -0.01%
==========================================
Files 171 171
Lines 8783 8780 -3
==========================================
- Hits 8772 8769 -3
Misses 11 11
Continue to review full report at Codecov.
|
457d095
to
50661ac
Compare
@@ -102,7 +102,7 @@ def __init__(self, | |||
allowed_model_families to be ignored. | |||
|
|||
allowed_model_families (list(str, ModelFamily)): The model families to search. The default of None searches over all | |||
model families. Run evalml.list_model_families("binary") to see options. Change `binary` | |||
model families. Run evalml.pipelines.components.utils.allowed_model_families("binary") to see options. Change `binary` |
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 thought about adding this to the user guide but I like what's currently there.
50661ac
to
9317ce7
Compare
Oof, codecov is complaining because I made a docstring change to a file with near-100% coverage. <0.01% project coverage change introduced by this PR. I plan to ignore that and merge. Perhaps we should lower our codecov threshold... |
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.
@dsherry Looks good to me! I think its fine to merge without the project codecov test passing in this instance.
Notes here
Summary: we ran into a circular dependency issue in this code. We realized that since
list_model_families
is currently defined as an attribute of estimators, we should move that code into the components namespace, and that doing so would avoid issues with importing other utilities from the components namespace.Building on work from #898 #911 #934