Skip to content

Commit

Permalink
Merge pull request scikit-learn#5201 from christophebourguignat/master
Browse files Browse the repository at this point in the history
DOC Clarify random_state parameter in KFold() doc
  • Loading branch information
GaelVaroquaux committed Sep 2, 2015
2 parents 364825a + b10e78e commit e2e5fbd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sklearn/cross_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ class KFold(_BaseKFold):
"""K-Folds cross validation iterator.
Provides train/test indices to split data in train test sets. Split
dataset into k consecutive folds (without shuffling).
dataset into k consecutive folds (without shuffling by default).
Each fold is then used a validation set once while the k - 1 remaining
fold form the training set.
Expand All @@ -273,8 +273,8 @@ class KFold(_BaseKFold):
Whether to shuffle the data before splitting into batches.
random_state : None, int or RandomState
Pseudo-random number generator state used for random
sampling. If None, use default numpy RNG for shuffling
When shuffle=True, pseudo-random number generator state used for
shuffling. If None, use default numpy RNG for shuffling.
Examples
--------
Expand Down Expand Up @@ -363,8 +363,8 @@ class StratifiedKFold(_BaseKFold):
into batches.
random_state : None, int or RandomState
Pseudo-random number generator state used for random
sampling. If None, use default numpy RNG for shuffling
When shuffle=True, pseudo-random number generator state used for
shuffling. If None, use default numpy RNG for shuffling.
Examples
--------
Expand Down

0 comments on commit e2e5fbd

Please sign in to comment.