|
27 | 27 | from ..metrics.scorer import check_scoring
|
28 | 28 | from ..exceptions import FitFailedWarning
|
29 | 29 |
|
30 |
| -from ._split import KFold |
31 |
| -from ._split import GroupKFold |
32 |
| -from ._split import LeaveOneGroupOut |
33 |
| -from ._split import LeaveOneOut |
34 |
| -from ._split import LeavePGroupsOut |
35 |
| -from ._split import LeavePOut |
36 |
| -from ._split import ShuffleSplit |
37 |
| -from ._split import GroupShuffleSplit |
38 |
| -from ._split import StratifiedKFold |
39 |
| -from ._split import StratifiedShuffleSplit |
40 |
| -from ._split import PredefinedSplit |
41 | 30 | from ._split import check_cv, _safe_split
|
42 | 31 |
|
43 | 32 | __all__ = ['cross_val_score', 'cross_val_predict', 'permutation_test_score',
|
44 | 33 | 'learning_curve', 'validation_curve']
|
45 | 34 |
|
46 |
| -ALL_CVS = {'KFold': KFold, |
47 |
| - 'GroupKFold': GroupKFold, |
48 |
| - 'LeaveOneGroupOut': LeaveOneGroupOut, |
49 |
| - 'LeaveOneOut': LeaveOneOut, |
50 |
| - 'LeavePGroupsOut': LeavePGroupsOut, |
51 |
| - 'LeavePOut': LeavePOut, |
52 |
| - 'ShuffleSplit': ShuffleSplit, |
53 |
| - 'GroupShuffleSplit': GroupShuffleSplit, |
54 |
| - 'StratifiedKFold': StratifiedKFold, |
55 |
| - 'StratifiedShuffleSplit': StratifiedShuffleSplit, |
56 |
| - 'PredefinedSplit': PredefinedSplit} |
57 |
| - |
58 |
| -GROUP_CVS = {'GroupKFold': GroupKFold, |
59 |
| - 'LeaveOneGroupOut': LeaveOneGroupOut, |
60 |
| - 'LeavePGroupsOut': LeavePGroupsOut, |
61 |
| - 'GroupShuffleSplit': GroupShuffleSplit} |
62 |
| - |
63 | 35 |
|
64 | 36 | def cross_val_score(estimator, X, y=None, groups=None, scoring=None, cv=None,
|
65 | 37 | n_jobs=1, verbose=0, fit_params=None,
|
|
0 commit comments