Skip to content

Commit

Permalink
[DOC] Precision on random_state in KFold() doc
Browse files Browse the repository at this point in the history
Without paying attention, we could think KFold(30, random_state=123)
and KFold(30, random_state=124) generated two different versions
  • Loading branch information
Christophe Bourguignat authored and Christophe Bourguignat committed Sep 1, 2015
1 parent 53c3530 commit b10e78e
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 @@ -253,7 +253,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 @@ -272,8 +272,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 @@ -362,8 +362,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 b10e78e

Please sign in to comment.