def test_split_nfold_datasets():
    # Load and create ddm from cifar100
    ddm = get_rnd_design_matrix()
    folds = ddm.split_dataset_nfolds(10)
    assert folds[0].shape[0] == np.ceil(ddm.get_num_examples() / 10)
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/datasets/tests/test_dense_design_matrix.py/test_split_nfold_datasets/original