8000 FIX decouple spectral embedding from TransformerMixin · scikit-learn/scikit-learn@64fd085 · GitHub
[go: up one dir, main page]

Skip to content

Commit 64fd085

Browse files
committed
FIX decouple spectral embedding from TransformerMixin
It doesn't have a transform method. Fixes #2887.
1 parent 0d8c2d7 commit 64fd085

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sklearn/manifold/spectral_embedding_.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,8 @@ def spectral_embedding(adjacency, n_components=8, eigen_solver=None,
310310
return embedding[:n_components].T
311311

312312

313-
class SpectralEmbedding(BaseEstimator, TransformerMixin):
314-
"""Spectral Embedding for Non-linear Dimensionality Reduction.
313+
class SpectralEmbedding(BaseEstimator):
314+
"""Spectral embedding for non-linear dimensionality reduction.
315315
316316
Forms an affinity matrix given by the specified function and
317317
applies spectral decomposition to the corresponding graph laplacian.

0 commit comments

Comments
 (0)
0