Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: On entry to SGESDD parameter number 12 had an illegal value #1

Open
ericustc opened this issue Oct 27, 2015 · 4 comments
Open

Comments

@ericustc
Copy link

python test_lfw.py

(71846, 5900) (71846, 1)
2015-10-27, 19:18:08 PCA training (n_components=2000)...
Traceback (most recent call last):
File "test_lfw.py", line 64, in
excute_train()
File "test_lfw.py", line 22, in excute_train
pca = PCA_Train(data, result_fold)
File "/opt/wjc/Joint-Bayesian/src/joint_bayesian.py", line 122, in PCA_Train
pca.fit(data)
File "/usr/lib64/python2.7/site-packages/sklearn/decomposition/pca.py", line 221, in fit
self._fit(X)
File "/usr/lib64/python2.7/site-packages/sklearn/decomposition/pca.py", line 271, in _fit
U, S, V = linalg.svd(X, full_matrices=False)
File "/usr/lib64/python2.7/site-packages/scipy/linalg/decomp_svd.py", line 104, in svd
full_matrices=full_matrices, overwrite_a=overwrite_a)
ValueError: On entry to SGESDD parameter number 12 had an illegal value

what's your method of solving the error?

@lufo816
Copy link

lufo816 commented Nov 23, 2015

Use IncrementalPCA()

@HKUSTmji
Copy link

HKUSTmji commented Mar 2, 2016

the same problem, even replacing the PCA method to the IncrementalPCA. Any suggestions?

@leandrosnm
Copy link

Hi, I had the same issue and solved it by using IncrementalPCA() and updating numpy to version 1.11.0 and scipy to version 0.17.0

It seems there's a bug somewhere in numpy and scipy older versions.

@zjz5250
Copy link

zjz5250 commented Jan 10, 2018

@ericustc, can you share the data? l can not download . thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants