def calculate(self, ds, bounds=[-1, 1], field='input'):
        self.dim = ds[field].shape[1]
        if self.meanstd:
            self.par1 = ds[field].mean(axis=0)
            self.par2 = ds[field].std(axis=0)
        else:
            self.par1 = ds[field].min(axis=0)
            self.par2 = ds[field].max(axis=0)
            self.scale = (bounds[1] - bounds[0]) / (self.par1 - self.par2)
        self.newmin = bounds[0]
        self.newmax = bounds[1]
dataset/ETHPy150Open pybrain/pybrain/pybrain/tools/datasettools.py/DataSetNormalizer.calculate/swapped operands of `-`