-
Notifications
You must be signed in to change notification settings - Fork 89
Have all_components and all_pipelines try to initialize components/pipelines #849
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
Codecov Report
@@ Coverage Diff @@
## master #849 +/- ##
=======================================
Coverage 99.68% 99.68%
=======================================
Files 195 195
Lines 7738 7740 +2
=======================================
+ Hits 7714 7716 +2
Misses 24 24
Continue to review full report at Codecov.
|
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.
This is really nice to have - I like the standardization of returning instances (like how handle_component works)!
@@ -92,6 +92,6 @@ def handle_component(component): | |||
raise ValueError("handle_component only takes in str or ComponentBase") | |||
components = all_components() | |||
if component not in components: | |||
raise KeyError("Component {} was not found".format(component)) | |||
raise MissingComponentError('Component "{}" was not found'.format(component)) |
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!
component = handle_component(component) | ||
try: | ||
component = handle_component(component) | ||
except MissingComponentError as e: |
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.
very nice.
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.
Thanks yeah I like the way this fits together now!
…pelines and skip on ImportError or related errors
7745a61
to
25368c2
Compare
Fix #523
Update
all_components()
andall_pipelines()
to try to initialize components and pipelines, and if there are failures related to import, skip them.This replaces the hacky import_or_raise stuff I had hard-coded for our optional modeling deps xgboost and catboost.