def get_cifar10(withlabel=True, ndim=3, scale=1.0):
 raw = _retrieve_cifar('cifar-10')
 train = _preprocess_cifar(raw['train_x'], raw['train_y'], withlabel, ndim, scale)
 test = _preprocess_cifar(raw['test_x'], raw['test_y'], withlabel, ndim, scale)
 return (train, test)

def get_cifar10 ( withlabel = True , ndim = 3 , scale = 1.0 ) : raw = _retrieve_cifar ( 'cifar-10' ) train = _preprocess_cifar ( raw [ 'train_x' ] , raw [ 'train_y' ] , withlabel , ndim , scale ) test = _preprocess_cifar ( raw [ 'test_x' ] , raw [ 'test_y' ] , withlabel , ndim , scale ) return ( train , test )
gets the cifar-10 dataset .