Skip to content

Commit

Permalink
Add pylint disable for unbalanced-tuple-unpacking, this needs fixing,…
Browse files Browse the repository at this point in the history
… see #17
  • Loading branch information
mihaeladuta committed Nov 13, 2024
1 parent a8fcb7c commit be16982
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions l2gv2/embedding/svd.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ def matmat_XH_X(x):

X = rg.normal(size=(min(A.shape), k))
for _ in range(maxrestarts):
# TODO: fix unbalanced-tuple-unpacking in call to sl.lobpcg
# pylint: disable=unbalanced-tuple-unpacking
eigvals, eigvec, res = sl.lobpcg(
XH_X,
X,
Expand All @@ -178,6 +180,7 @@ def matmat_XH_X(x):
retResidualNormsHistory=True,
verbosityLevel=verbose,
)
# pylint: enable=unbalanced-tuple-unpacking
if res[-1].max() > tol:
X = eigvec + rg.normal(size=eigvec.shape, scale=0.5 * tol)
else:
Expand Down

0 comments on commit be16982

Please sign in to comment.