def project(self, X, Q=None):
if Q is None:<EOL><INDENT>Q = self.Q<EOL><DEDENT>if Q > X.shape[<NUM_LIT:1>]:<EOL><INDENT>raise IndexError("<STR_LIT>")<EOL><DEDENT>X = self.center(X)<EOL>return X.dot(self.eigvectors[:, :Q])<EOL>
Project X into PCA space, defined by the Q highest eigenvalues.
Y = X dot V