6.10.2. statsmodels.sandbox.tools.cross_val

Utilities for cross validation.

taken from scikits.learn

# Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>, # Gael Varoquaux <gael.varoquaux@normalesup.org> # License: BSD Style. # $Id$

changes to code by josef-pktd:
  • docstring formatting: underlines of headers

6.10.2.1. Functions

split(train_indexes, test_indexes, *args) For each arg return a train and test subsets defined by indexes provided

6.10.2.2. Classes

KFold(n, k) K-Folds cross validation iterator:
KStepAhead(n[, k, start, kall, return_slice]) KStepAhead cross validation iterator:
LeaveOneLabelOut(labels) Leave-One-Label_Out cross-validation iterator:
LeaveOneOut(n) Leave-One-Out cross validation iterator:
LeavePOut(n, p) Leave-P-Out cross validation iterator: