Home | Trees | Indices | Help |
---|
|
Created on Mon Jun 16 10:00:06 2014
Copyright (c) 2013-2014, CEA/DSV/I2BM/Neurospin. All rights reserved.
Author: Tommy Löfstedt
License: BSD 3-clause.
|
|||
|
|||
|
|||
|
|||
|
|
|||
__package__ =
|
|
K-fold cross validation iterator. Returns indices for training and test sets. Parameters ---------- n : Positive integer greater than one. The number of samples. K : Positive integer greater than or equal to two. The number of folds. |
Stratified k-fold cross validation iterator. Returns indices for training and test sets. Parameters ---------- y : Numpy array with n > 1 elements. The class labels. These labels are used to stratify the folds. K : Positive integer greater than or equal to two. The number of folds. |
Bootstrap sample iterator. Returns indices for a bootstrap training set. Parameters ---------- n : Positive integer greater than one. The number of samples. B : Positive integer greater than or equal to two. The number of bootstrap samples to draw. seed : Integer. A random seed to initialise the random number generator with. Use in order to obtain deterministic results. The seed is not used if the seed is None. |
Stratified bootstrap sample iterator. Returns indices for a bootstrap training set. Parameters ---------- y : Numpy array with n > 1 elements. The class labels. These labels are used to stratify the samples. B : Positive integer greater than or equal to two. The number of bootstrap samples to draw. seed : Integer. A random seed to initialise the random number generator with. Use in order to obtain deterministic results. The seed is not used if the seed is None. |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Apr 6 23:52:10 2015 | http://epydoc.sourceforge.net |