def transform(self, X):
n = self.clip_.shape[<NUM_LIT:0>]<EOL>if X.ndim != <NUM_LIT:2> or X.shape[<NUM_LIT:1>] != n:<EOL><INDENT>msg = "<STR_LIT>"<EOL>raise TypeError(msg.format(self.clip_.shape[<NUM_LIT:0>]))<EOL><DEDENT>return np.dot(X, self.clip_)<EOL>
Transforms X according to the linear transformation corresponding to
clipping the input eigenvalues.

Parameters
----------
X : array, shape [n_test, n]
    The test similarities to training points.

Returns
-------
Xt : array, shape [n_test, n]
    The transformed test similarites to training points.