def apply(self, data, remove_mean=True):
        data = self._flatten_data(data)
        d = data - self.mean if remove_mean else data
        return self._reshape_data(np.dot(d, self.P))
dataset/ETHPy150Open CuriousAI/ladder/nn.py/ZCA.apply/original