-
-
Notifications
You must be signed in to change notification settings - Fork 26k
[MRG+1] MNT remove ALL_CVS and LABEL_CVS from _validation.py #6517
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+1] MNT remove ALL_CVS and LABEL_CVS from _validation.py #6517
Conversation
8f7bea9
to
a2c3922
Compare
3b812a8
to
360e86d
Compare
@@ -1597,3 +1597,21 @@ def _build_repr(self): | |||
params[key] = value | |||
|
|||
return '%s(%s)' % (class_name, _pprint(params, offset=len(class_name))) | |||
|
|||
|
|||
ALL_CVS = {'KFold': KFold, |
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.
Are these being made available to the public?
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.
If they're only for testing, they probably belong in tests
, no?
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.
The idea was to make it public like SCORERS
I think... Do you feel it would not add much value being public?
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.
SCORERS
was public because get_scorer
didn't exist, and because it's a register of (non-importable) strings, not a collection of classes that can be imported. I'm a little ambivalent, but this would be novel in scikit-learn. __all__
is close to the same...?
Ok. I'll move it from validation to the tests for now... |
I'd rather not add public constants unless necessary. |
9b4329d
to
a25d7c8
Compare
selfnote: Simply remove the existing constants from the file and don't touch the tests... |
a25d7c8
to
8dd1a71
Compare
8dd1a71
to
b966b44
Compare
LGTM |
@ogrisel, can we merge this before accidentally making commitments to public namespace? |
A minor part of #5053
@jnothman @amueller @MechCoder @vene