Skip to content

Commit 3cda5b2

Browse files
authored
DOC correct comment in _locally_linear_embedding (scikit-learn#30095)
1 parent c82ffc8 commit 3cda5b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/manifold/_locally_linear.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def _locally_linear_embedding(
243243
M = M.T * M
244244
else:
245245
M = (W.T * W - W.T - W).toarray()
246-
M.flat[:: M.shape[0] + 1] += 1 # W = W - I = W - I
246+
M.flat[:: M.shape[0] + 1] += 1 # M = W' W - W' - W + I
247247

248248
elif method == "hessian":
249249
dp = n_components * (n_components + 1) // 2

0 commit comments

Comments
 (0)