[MRG+1] MNT remove ALL_CVS and LABEL_CVS from _validation.py#6517
Conversation
8f7bea9 to
a2c3922
Compare
3b812a8 to
360e86d
Compare
sklearn/model_selection/_split.py
Outdated
| return '%s(%s)' % (class_name, _pprint(params, offset=len(class_name))) | ||
|
|
||
|
|
||
| ALL_CVS = {'KFold': KFold, |
There was a problem hiding this comment.
Are these being made available to the public?
There was a problem hiding this comment.
If they're only for testing, they probably belong in tests, no?
There was a problem hiding this comment.
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.
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