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

Change default action for invalid target data check #4131

Merged
merged 10 commits into from
Apr 10, 2023

Conversation

ParthivNaresh
Copy link
Contributor

Fixes: #4130


After creating the pull request: in order to pass the release_notes_updated check you will need to update the "Future Release" section of docs/source/release_notes.rst to include this pull request by adding :pr:123.

@codecov
Copy link

codecov bot commented Apr 7, 2023

Codecov Report

Merging #4131 (3894fe6) into main (401bf9a) will increase coverage by 0.1%.
The diff coverage is 100.0%.

@@           Coverage Diff           @@
##            main   #4131     +/-   ##
=======================================
+ Coverage   99.7%   99.7%   +0.1%     
=======================================
  Files        349     349             
  Lines      37740   37752     +12     
=======================================
+ Hits       37623   37635     +12     
  Misses       117     117             
Impacted Files Coverage Δ
evalml/tests/data_checks_tests/test_data_checks.py 100.0% <ø> (ø)
...ata_checks_tests/test_invalid_target_data_check.py 100.0% <ø> (ø)
evalml/data_checks/invalid_target_data_check.py 100.0% <100.0%> (ø)
..._tests/test_data_checks_and_actions_integration.py 100.0% <100.0%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

data_check_name="InvalidTargetDataCheck",
parameters={

Choose a reason for hiding this comment

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

why are we removing all the params?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is testing the default action which is now drop rows, and the drop rows action doesn't have any of the parameters required by the impute column action

data_check = InvalidTargetDataCheck("binary", "Log Loss Binary")
data_checks_output = data_check.validate(None, y)

action_pipeline = make_pipeline_from_data_check_output("binary", data_checks_output)
Copy link
Collaborator

Choose a reason for hiding this comment

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

will be interesting to see how we fit these components or "datacheck pipelines" into our search pipelines!

@@ -82,7 +82,7 @@ def validate(self, X, y):

>>> X = pd.DataFrame({"col": [1, 2, 3, 1]})
>>> y = pd.Series(["cat_1", "cat_2", "cat_1", "cat_2"])
>>> target_check = InvalidTargetDataCheck("regression", "R2")
>>> target_check = InvalidTargetDataCheck("regression", "R2", null_strategy="impute")
Copy link
Collaborator

Choose a reason for hiding this comment

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

it would be nice to keep the default behavior in the docstring. Can you file an issue for it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For sure!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Filed here

Copy link
Collaborator

Choose a reason for hiding this comment

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

cheers!

Copy link
Collaborator

@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.

LGTM just some followup comments.

@ParthivNaresh ParthivNaresh merged commit 6189c62 into main Apr 10, 2023
@ParthivNaresh ParthivNaresh deleted the change_default_action_for_invalid_target_dc branch April 10, 2023 19:46
@chukarsten chukarsten mentioned this pull request Apr 10, 2023
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.

Change the default action for Invalid Target Data Check to drop
5 participants