def split_dataset_random(dataset, first_size, seed=None):
 order = numpy.random.RandomState(seed).permutation(len(dataset))
 return split_dataset(dataset, first_size, order)

def split_dataset_random ( dataset , first_size , seed = None ) : order = numpy . random . RandomState ( seed ) . permutation ( len ( dataset ) ) return split_dataset ( dataset , first_size , order )
splits a dataset into two subsets randomly .