We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c82ffc8 commit 3cda5b2Copy full SHA for 3cda5b2
sklearn/manifold/_locally_linear.py
@@ -243,7 +243,7 @@ def _locally_linear_embedding(
243
M = M.T * M
244
else:
245
M = (W.T * W - W.T - W).toarray()
246
- M.flat[:: M.shape[0] + 1] += 1 # W = W - I = W - I
+ M.flat[:: M.shape[0] + 1] += 1 # M = W' W - W' - W + I
247
248
elif method == "hessian":
249
dp = n_components * (n_components + 1) // 2
0 commit comments