Skip to content

Commit 2beaafc

Browse files
committed
fommatting lobpcg.py
1 parent 0100ebc commit 2beaafc

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

sklearn/utils/lobpcg.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@
1212
Examples in tests directory contributed by Nils Wagner.
1313
"""
1414

15-
# from __future__ import division, print_function, absolute_import
16-
17-
# import sys
18-
19-
import numpy as np
2015
from numpy.testing import assert_allclose
2116
from scipy._lib.six import xrange
2217
from scipy.linalg import inv, eigh, cho_factor, cho_solve, cholesky
@@ -480,12 +475,6 @@ def lobpcg(A, X,
480475
gramB = np.bmat([[ident0, xbw],
481476
[xbw.T.conj(), ident]])
482477

483-
# _assert_symmetric(gramA) # does not work in float32
484-
# _assert_symmetric(gramB)
485-
# gramA = (gramA.T.conj()+gramA)/2
486-
# gramB = (gramB.T.conj()+gramB)/2 +
487-
# 1e-4*np.eye(gramB.shape[0], dtype=gramB.dtype)
488-
489478
if verbosityLevel > 10:
490479
save(gramA, 'gramA')
491480
save(gramB, 'gramB')
@@ -498,9 +487,6 @@ def lobpcg(A, X,
498487
else:
499488
ii = np.argsort(_lambda)[: sizeX]
500489

501-
# ii = np.argsort(_lambda)[: sizeX]
502-
# if largest:
503-
# ii = ii[::-1]
504490
if verbosityLevel > 10:
505491
print(ii)
506492
print(_lambda)

0 commit comments

Comments
 (0)