def transform_lsi(self, X):
""" LSI transform, normalized by the inverse of the eigen values"""
X = check_array(X, accept_sparse='csr')
return safe_sparse_dot(X, self.components_.T).dot(
np.diag(1./self.singular_values_[:self.n_components]))
评论列表
文章目录