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 AutoML to pass Woodwork DataTables to every pipeline/component (instead of pandas DataFrames) #1450
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1450 +/- ##
=========================================
+ Coverage 100.0% 100.0% +0.1%
=========================================
Files 222 222
Lines 14813 14891 +78
=========================================
+ Hits 14806 14884 +78
Misses 7 7
Continue to review full report at Codecov.
|
self._set_data_split(X) | ||
|
||
data_checks = self._validate_data_checks(data_checks) | ||
self._data_check_results = data_checks.validate(X, y) | ||
self._data_check_results = data_checks.validate(_convert_woodwork_types_wrapper(X.to_dataframe()), _convert_woodwork_types_wrapper(y.to_series())) |
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.
Data checks currently don't support Woodwork types (to do in #1292 or later PR), so passing pandas to data checks.
|
||
if not isinstance(y_true, pd.Series): | ||
y_true = pd.Series(y_true) | ||
y_true = self._standardize_input_type(y_true) |
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.
Updating to reuse our helper method (which handles DataColumns too)
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.
@angela97lin I think this is great! I noticed none of out automl tests use ww inputs. Not sure if the right thing to do is update all of our tests to use ww, add some ww-specific unit tests, or both but I think we should do at least one before merge lol. In particular, I think we need to be careful that the user-defined types are preserved throughout.
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.
@angela97lin exciting! Great stuff :)
I left some questions/comments, and one impl suggestion in ObjectiveBase
Closes #1289