-
-
Notifications
You must be signed in to change notification settings - Fork 26.6k
[MRG+2] MultiOutputClassifier classes_ attribute #14629
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+2] MultiOutputClassifier classes_ attribute #14629
Conversation
|
Shall we include a non-regression test checking the |
jnothman
left a comment
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.
Please do extend a test to check this.
OK done. Please let me know if anything else is needed. Otherwise please review and change PR title accordingly. |
|
On a side note, the dataset used in most of the tests is created globally, would it not be better practice to have that wrapped in a function definition, then call that function from within all tests that use the particular dataset? scikit-learn/sklearn/tests/test_multioutput.py Lines 151 to 162 in 5a435f4
|
We could use the pytest.fixture instead. But I would say that this is out of the scope for this PR. We might need to have something consistent across the source code then such that this is easy to know where the fixtures are defined etc. However, this is a good remark |
Agreed. Feel free to open a separate issue then if you wish. |
glemaitre
left a comment
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.
Couple of comments but it looks good
NicolasHug
left a comment
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.
Nit but LGTM, thanks @agamemnonc
glemaitre
left a comment
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.
LGTM
|
Could you also merge master into your branch such that we check that the CI for the doc is passing. |
|
Thanks @glemaitre @NicolasHug and @jnothman for feedback. I think this is now ready. |
|
@agamemnonc Thanks for your contribution |
Reference Issues/PRs
Fixes #14615.
What does this implement/fix? Explain your changes.
MultiOutputClassifierclass now has attributeclasses_(same asClassifierChain)Any other comments?