Closed
Description
hi, I want to use LFDA algorithm for my data but have some confused problem.
firstly, I try the example code in the document, every thing is ok. but when I run this for myself data, It got an error:
File "unit_test.py", line 245, in person_reid_LFDA
lfda.fit(train_X, train_Y)
File "/usr/local/lib/python2.7/dist-packages/metric_learn/lfda.py", line 105, in fit
which='LA')
File "/usr/local/lib/python2.7/dist-packages/scipy/sparse/linalg/eigen/arpack/arpack.py", line 1605, in eigsh
params.iterate()
File "/usr/local/lib/python2.7/dist-packages/scipy/sparse/linalg/eigen/arpack/arpack.py", line 537, in iterate
self.ipntr, self.workd, self.workl, self.info)
ValueError: On entry to DLASCL parameter number 4 had an illegal value
in this case, train_X shape is (632, 4096), train_Y shape is (632,), and my code is:
lfda = LFDA(k=5, dim=128)
lfda.fit(train_X, train_Y)
Is there any idea for this error?