@@ -1089,7 +1089,7 @@ def __len__(self):
10891089
10901090
10911091class LabelShuffleSplit (ShuffleSplit ):
1092- ''' Shuffle-Labels-Out cross-validation iterator
1092+ """ Shuffle-Labels-Out cross-validation iterator
10931093
10941094 Provides randomized train/test indices to split data according to a
10951095 third-party provided label. This label information can be used to encode
@@ -1118,7 +1118,7 @@ class LabelShuffleSplit(ShuffleSplit):
11181118 Labels of samples
11191119
11201120 n_iter : int (default 5)
1121- Number of re-shuffling & splitting iterations.
1121+ Number of re-shuffling and splitting iterations.
11221122
11231123 test_size : float (default 0.2), int, or None
11241124 If float, should be between 0.0 and 1.0 and represent the
@@ -1134,7 +1134,8 @@ class LabelShuffleSplit(ShuffleSplit):
11341134
11351135 random_state : int or RandomState
11361136 Pseudo-random number generator state used for random sampling.
1137- '''
1137+
1138+ """
11381139 def __init__ (self , labels , n_iter = 5 , test_size = 0.2 , train_size = None ,
11391140 random_state = None ):
11401141
@@ -1208,10 +1209,11 @@ def cross_val_predict(estimator, X, y=None, cv=None, n_jobs=1,
12081209 cv : int, cross-validation generator or an iterable, optional
12091210 Determines the cross-validation splitting strategy.
12101211 Possible inputs for cv are:
1211- - None, to use the default 3-fold cross-validation,
1212- - integer, to specify the number of folds.
1213- - An object to be used as a cross-validation generator.
1214- - An iterable yielding train/test splits.
1212+
1213+ - None, to use the default 3-fold cross-validation,
1214+ - integer, to specify the number of folds.
1215+ - An object to be used as a cross-validation generator.
1216+ - An iterable yielding train/test splits.
12151217
12161218 For integer/None inputs, if ``y`` is binary or multiclass,
12171219 :class:`StratifiedKFold` used. If the estimator is a classifier
@@ -1382,10 +1384,11 @@ def cross_val_score(estimator, X, y=None, scoring=None, cv=None, n_jobs=1,
13821384 cv : int, cross-validation generator or an iterable, optional
13831385 Determines the cross-validation splitting strategy.
13841386 Possible inputs for cv are:
1385- - None, to use the default 3-fold cross-validation,
1386- - integer, to specify the number of folds.
1387- - An object to be used as a cross-validation generator.
1388- - An iterable yielding train/test splits.
1387+
1388+ - None, to use the default 3-fold cross-validation,
1389+ - integer, to specify the number of folds.
1390+ - An object to be used as a cross-validation generator.
1391+ - An iterable yielding train/test splits.
13891392
13901393 For integer/None inputs, if ``y`` is binary or multiclass,
13911394 :class:`StratifiedKFold` used. If the estimator is a classifier
@@ -1643,10 +1646,11 @@ def check_cv(cv, X=None, y=None, classifier=False):
16431646 cv : int, cross-validation generator or an iterable, optional
16441647 Determines the cross-validation splitting strategy.
16451648 Possible inputs for cv are:
1646- - None, to use the default 3-fold cross-validation,
1647- - integer, to specify the number of folds.
1648- - An object to be used as a cross-validation generator.
1649- - An iterable yielding train/test splits.
1649+
1650+ - None, to use the default 3-fold cross-validation,
1651+ - integer, to specify the number of folds.
1652+ - An object to be used as a cross-validation generator.
1653+ - An iterable yielding train/test splits.
16501654
16511655 For integer/None inputs, if ``y`` is binary or multiclass,
16521656 :class:`StratifiedKFold` used. If the estimator is a classifier
@@ -1716,10 +1720,11 @@ def permutation_test_score(estimator, X, y, cv=None,
17161720 cv : int, cross-validation generator or an iterable, optional
17171721 Determines the cross-validation splitting strategy.
17181722 Possible inputs for cv are:
1719- - None, to use the default 3-fold cross-validation,
1720- - integer, to specify the number of folds.
1721- - An object to be used as a cross-validation generator.
1722- - An iterable yielding train/test splits.
1723+
1724+ - None, to use the default 3-fold cross-validation,
1725+ - integer, to specify the number of folds.
1726+ - An object to be used as a cross-validation generator.
1727+ - An iterable yielding train/test splits.
17231728
17241729 For integer/None inputs, if ``y`` is binary or multiclass,
17251730 :class:`StratifiedKFold` used. If the estimator is a classifier
0 commit comments