- chainer.datasets.get_cross_validation_datasets_random(dataset, n_folds, seed=None, **kwargs)¶
Creates a set of training/test splits for cross validation randomly.
This function acts almost same as
get_cross_validation_dataset(), except automatically generating random permutation.
dataset – Dataset to split.
n_fold (int) – (deprecated) n_fold is now deprecated for consistency of naming choice. Please use n_folds instead.
n_folds (int) – Number of splits for cross validation.
seed (int) – Seed the generator used for the permutation of indexes. If an integer beging convertible to 32 bit unsigned integers is specified, it is guaranteed that each sample in the given dataset always belongs to a specific subset. If
None, the permutation is changed randomly.
List of dataset splits.
- Return type
list of tuples