MCPcopy Create free account
hub / github.com/christopherjenness/ML-lib / k_fold_generator

Function k_fold_generator

ML/modelselection.py:136–166  ·  view source on GitHub ↗

generator of indices to split data of given length into test and train sets. Useful for K-fold cross validation. Args: data_length (int): Length of data to be split into test and training sets folds (int): number of splits to make in the data.

(data_length, folds=10, randomize=True)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected