chainer.datasets.get_cross_validation_datasets_random(dataset, n_fold, seed=None)[source]

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) – 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