@@ -109,6 +109,10 @@ def _empty_mask(self):
109109class LeaveOneOut (_PartitionIterator ):
110110 """Leave-One-Out cross validation iterator.
111111
112+ .. deprecated:: 0.18
113+ This module will be removed in 0.20.
114+ Use :class:`sklearn.model_selection.LeaveOneOut` instead.
115+
112116 Provides train/test indices to split data in train test sets. Each
113117 sample is used once as a test set (singleton) while the remaining
114118 samples form the training set.
@@ -171,6 +175,10 @@ def __len__(self):
171175class LeavePOut (_PartitionIterator ):
172176 """Leave-P-Out cross validation iterator
173177
178+ .. deprecated:: 0.18
179+ This module will be removed in 0.20.
180+ Use :class:`sklearn.model_selection.LeavePOut` instead.
181+
174182 Provides train/test indices to split data in train test sets. This results
175183 in testing on all distinct samples of size p, while the remaining n - p
176184 samples form the training set in each iteration.
@@ -266,6 +274,10 @@ def __init__(self, n, n_folds, shuffle, random_state):
266274class KFold (_BaseKFold ):
267275 """K-Folds cross validation iterator.
268276
277+ .. deprecated:: 0.18
278+ This module will be removed in 0.20.
279+ Use :class:`sklearn.model_selection.KFold` instead.
280+
269281 Provides train/test indices to split data in train test sets. Split
270282 dataset into k consecutive folds (without shuffling by default).
271283
@@ -357,6 +369,10 @@ def __len__(self):
357369class LabelKFold (_BaseKFold ):
358370 """K-fold iterator variant with non-overlapping labels.
359371
372+ .. deprecated:: 0.18
373+ This module will be removed in 0.20.
374+ Use :class:`sklearn.model_selection.GroupKFold` instead.
375+
360376 The same label will not appear in two different folds (the number of
361377 distinct labels has to be at least equal to the number of folds).
362378
@@ -459,6 +475,10 @@ def __len__(self):
459475class StratifiedKFold (_BaseKFold ):
460476 """Stratified K-Folds cross validation iterator
461477
478+ .. deprecated:: 0.18
479+ This module will be removed in 0.20.
480+ Use :class:`sklearn.model_selection.StratifiedKFold` instead.
481+
462482 Provides train/test indices to split data in train test sets.
463483
464484 This cross-validation object is a variation of KFold that
@@ -581,6 +601,10 @@ def __len__(self):
581601class LeaveOneLabelOut (_PartitionIterator ):
582602 """Leave-One-Label_Out cross-validation iterator
583603
604+ .. deprecated:: 0.18
605+ This module will be removed in 0.20.
606+ Use :class:`sklearn.model_selection.LeaveOneGroupOut` instead.
607+
584608 Provides train/test indices to split data according to a third-party
585609 provided label. This label information can be used to encode arbitrary
586610 domain specific stratifications of the samples as integers.
@@ -651,6 +675,10 @@ def __len__(self):
651675class LeavePLabelOut (_PartitionIterator ):
652676 """Leave-P-Label_Out cross-validation iterator
653677
678+ .. deprecated:: 0.18
679+ This module will be removed in 0.20.
680+ Use :class:`sklearn.model_selection.LeavePGroupsOut` instead.
681+
654682 Provides train/test indices to split data according to a third-party
655683 provided label. This label information can be used to encode arbitrary
656684 domain specific stratifications of the samples as integers.
@@ -762,6 +790,10 @@ def _iter_indices(self):
762790class ShuffleSplit (BaseShuffleSplit ):
763791 """Random permutation cross-validation iterator.
764792
793+ .. deprecated:: 0.18
794+ This module will be removed in 0.20.
795+ Use :class:`sklearn.model_selection.ShuffleSplit` instead.
796+
765797 Yields indices to split data into training and test sets.
766798
767799 Note: contrary to other cross-validation strategies, random splits
@@ -963,6 +995,10 @@ def _approximate_mode(class_counts, n_draws, rng):
963995class StratifiedShuffleSplit (BaseShuffleSplit ):
964996 """Stratified ShuffleSplit cross validation iterator
965997
998+ .. deprecated:: 0.18
999+ This module will be removed in 0.20.
1000+ Use :class:`sklearn.model_selection.StratifiedShuffleSplit` instead.
1001+
9661002 Provides train/test indices to split data in train test sets.
9671003
9681004 This cross-validation object is a merge of StratifiedKFold and
@@ -1085,6 +1121,10 @@ def __len__(self):
10851121class PredefinedSplit (_PartitionIterator ):
10861122 """Predefined split cross validation iterator
10871123
1124+ .. deprecated:: 0.18
1125+ This module will be removed in 0.20.
1126+ Use :class:`sklearn.model_selection.PredefinedSplit` instead.
1127+
10881128 Splits the data into training/test set folds according to a predefined
10891129 scheme. Each sample can be assigned to at most one test set fold, as
10901130 specified by the user through the ``test_fold`` parameter.
@@ -1140,6 +1180,10 @@ def __len__(self):
11401180class LabelShuffleSplit (ShuffleSplit ):
11411181 """Shuffle-Labels-Out cross-validation iterator
11421182
1183+ .. deprecated:: 0.18
1184+ This module will be removed in 0.20.
1185+ Use :class:`sklearn.model_selection.GroupShuffleSplit` instead.
1186+
11431187 Provides randomized train/test indices to split data according to a
11441188 third-party provided label. This label information can be used to encode
11451189 arbitrary domain specific stratifications of the samples as integers.
@@ -1241,6 +1285,10 @@ def cross_val_predict(estimator, X, y=None, cv=None, n_jobs=1,
12411285 verbose = 0 , fit_params = None , pre_dispatch = '2*n_jobs' ):
12421286 """Generate cross-validated estimates for each input data point
12431287
1288+ .. deprecated:: 0.18
1289+ This module will be removed in 0.20.
1290+ Use :func:`sklearn.model_selection.cross_val_predict` instead.
1291+
12441292 Read more in the :ref:`User Guide <cross_validation>`.
12451293
12461294 Parameters
@@ -1421,6 +1469,10 @@ def cross_val_score(estimator, X, y=None, scoring=None, cv=None, n_jobs=1,
14211469 verbose = 0 , fit_params = None , pre_dispatch = '2*n_jobs' ):
14221470 """Evaluate a score by cross-validation
14231471
1472+ .. deprecated:: 0.18
1473+ This module will be removed in 0.20.
1474+ Use :func:`sklearn.model_selection.cross_val_score` instead.
1475+
14241476 Read more in the :ref:`User Guide <cross_validation>`.
14251477
14261478 Parameters
@@ -1724,6 +1776,10 @@ def _shuffle(y, labels, random_state):
17241776def check_cv (cv , X = None , y = None , classifier = False ):
17251777 """Input checker utility for building a CV in a user friendly way.
17261778
1779+ .. deprecated:: 0.18
1780+ This module will be removed in 0.20.
1781+ Use :func:`sklearn.model_selection.check_cv` instead.
1782+
17271783 Parameters
17281784 ----------
17291785 cv : int, cross-validation generator or an iterable, optional
@@ -1781,6 +1837,10 @@ def permutation_test_score(estimator, X, y, cv=None,
17811837 random_state = 0 , verbose = 0 , scoring = None ):
17821838 """Evaluate the significance of a cross-validated score with permutations
17831839
1840+ .. deprecated:: 0.18
1841+ This module will be removed in 0.20.
1842+ Use :func:`sklearn.model_selection.permutation_test_score` instead.
1843+
17841844 Read more in the :ref:`User Guide <cross_validation>`.
17851845
17861846 Parameters
@@ -1882,6 +1942,10 @@ def permutation_test_score(estimator, X, y, cv=None,
18821942def train_test_split (* arrays , ** options ):
18831943 """Split arrays or matrices into random train and test subsets
18841944
1945+ .. deprecated:: 0.18
1946+ This module will be removed in 0.20.
1947+ Use :func:`sklearn.model_selection.train_test_split` instead.
1948+
18851949 Quick utility that wraps input validation and
18861950 ``next(iter(ShuffleSplit(n_samples)))`` and application to input
18871951 data into a single call for splitting (and optionally subsampling)
0 commit comments