def _validate(self, params):
        trainer = self._getTrainerForParams(params)
        return CrossValidator(trainer, self._dataset, self._n_folds, **self._validator_kwargs).validate()
The overridden validate function, that uses cross-validation in order
dataset/ETHPy150Open pybrain/pybrain/pybrain/tools/gridsearch.py/GridSearchCostGamma._validate