Skip to content

Commit b5f91f2

Browse files
committed
Making Spectral Embedding Deterministic
1 parent bef1f17 commit b5f91f2

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
@@ -181,7 +181,7 @@ def spectral_embedding(adjacency, n_components=8, eigen_solver=None,
181181
Notes
182182
-----
183183
Spectral embedding is most useful when the graph has one connected
184-
component. If there graph has many components, the first few u
184+
component. If there graph has many components, the first few eigenvectors
185185
will simply uncover the connected components of the graph.
186186
187187
References
@@ -294,7 +294,7 @@ def spectral_embedding(adjacency, n_components=8, eigen_solver=None,
294294
# lobpcg needs native floats
295295
laplacian = laplacian.astype(np.float)
296296
laplacian = _set_diag(laplacian, 1)
297-
# We increase the number of u requested, as lobpcg
297+
# We increase the number of eigenvectors requested, as lobpcg
298298
# doesn't behave well in low dimension
299299
X = random_state.rand(laplacian.shape[0], n_components + 1)
300300
X[:, 0] = dd.ravel()

0 commit comments

Comments
 (0)