def __init__(self, trainer, dataset, n_folds=5, valfunc=ModuleValidator.classificationPerformance, **kwargs):
        self._trainer = trainer
        self._dataset = dataset
        self._n_folds = n_folds
        self._calculatePerformance = valfunc
        self._max_epochs = None
        self.setArgs(**kwargs)
:arg trainer: Trainer containing a module to be trained
dataset/ETHPy150Open pybrain/pybrain/pybrain/tools/validation.py/CrossValidator.__init__