-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[MRG] MAINT explicit fail messages on non supported targets #544
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
[MRG] MAINT explicit fail messages on non supported targets #544
Conversation
@glemaitre when you have time review the changes please |
Codecov Report
@@ Coverage Diff @@
## master #544 +/- ##
==========================================
- Coverage 98.88% 98.86% -0.02%
==========================================
Files 84 82 -2
Lines 5184 5042 -142
==========================================
- Hits 5126 4985 -141
+ Misses 58 57 -1
Continue to review full report at Codecov.
|
@@ -493,3 +494,12 @@ def test_max_samples_consistency(): | |||
random_state=1) | |||
bagging.fit(X, y) | |||
assert bagging._max_samples == max_samples | |||
|
|||
|
|||
def test_bagging_multioutput_multilabel_error(): |
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.
Can we add those into the common tests instead?
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.
@glemaitre do you mean as parametrized test in imblearn.tests.test_common
?
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.
Partially yes. We need to add a test to estimator_check.py
. No need to parametrize. Common tests are yielding the sampler one by one and give it to the tests to be used. Here we need to add a common test which will be used for the classifier
basically.
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.
@glemaitre I think I am done
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.
No. I need to remove some code.
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.
@glemaitre what do you think?
Reference Issue
Fixes #543
What does this implement/fix? Explain your changes.
Makes the error messages regarding the targets more friendly to the user by providing explicit error messages