def _produceSamples(self):
        if self.clearStorage:
            self._allEvaluated = []
            self._allEvaluations = []
            
        tmp = [self._sample2base(self._produceSample()) for _ in range(self.batchSize)]
        list(map(self._oneEvaluation, tmp))            
        self._pointers = list(range(len(self._allEvaluated) - self.batchSize, len(self._allEvaluated)))
Append batch size new samples and evaluate them.
dataset/ETHPy150Open pybrain/pybrain/pybrain/optimization/distributionbased/snes.py/SNES._produceSamples