def transform(self, X=None):
"""Applies the learned transformation to the inputs.
Parameters
----------
X : array_like
An array of data samples with shape (n_samples, n_features_in) (default: None, defined when fit is called).
Returns
-------
array_like
An array of transformed data samples with shape (n_samples, n_features_out).
"""
if X is None:
X = self.X_
else:
X = check_array(X)
return X.dot(self.L_.T)
评论列表
文章目录