def reset(self, params, rep):
        """ To use the cross-validation mechanism, pass a numpy array of size n x d
            together with params and rep to the self.crossvalidation() method. 
            n is the number of samples and d is the dimensionality of the data. 
            The method returns a training and testing array.
        """
        data = load(os.path.join(params['dataset']))
        self.train, self.test = self.crossvalidation(data, params, rep, shuffle=True)
        
        # output for demonstration purposes
        print
        print
        print rep%'repetition %i:'
        print 'training set', self.train.flatten()
        print 'testing set', self.test.flatten()
        print 'iterations (one per dot)',
dataset/ETHPy150Open rueckstiess/expsuite/examples/crossvalidation/suite.py/MySuite.reset/swapped operands of `%`