def transform(self, X):
        """Applies the projection matrix w_LDA to the given points.

        Parameters
        ----------
        X : array of floats of dimension M x D, where M is the number of points
        and D the number of features.
            The data points.

        Returns
        -------
        array of float of dimension M x reduced_dim.
            The projected data points.

        """
        return np.dot(X - self.m_LDA, self.W_LDA)
dataset/ETHPy150Open vicgalle/machine-learning/reduce_dim.py/LDA.transform/original