def get_cross_validation_datasets_random(dataset, n_fold, seed=None):
 order = numpy.random.RandomState(seed).permutation(len(dataset))
 return get_cross_validation_datasets(dataset, n_fold, order)

def get_cross_validation_datasets_random ( dataset , n_fold , seed = None ) : order = numpy . random . RandomState ( seed ) . permutation ( len ( dataset ) ) return get_cross_validation_datasets ( dataset , n_fold , order )
creates a set of training/test splits for cross validation randomly .