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

Lfnmf #62

Open
zclandry opened this issue Apr 28, 2022 · 3 comments
Open

Lfnmf #62

zclandry opened this issue Apr 28, 2022 · 3 comments

Comments

@zclandry
Copy link

Hello,
I am receiving the following error when using the Lfnmf method (with nnsvd seed). This data works fine with other methods (for instance NMF, LSNMF and SNMF):

Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/IPython/core/interactiveshell.py", line 3441, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 83, in
fit = nmf()
File "/home//.local/lib/python3.9/site-packages/nimfa/models/nmf.py", line 118, in call
return self.factorize()
File "/home//.local/lib/python3.9/site-packages/nimfa/methods/factorization/lfnmf.py", line 172, in factorize
self.update()
File "/home//.local/lib/python3.9/site-packages/nimfa/methods/factorization/lfnmf.py", line 239, in update
w_1 = sum(self.H[k, j] * self.V[i, j] / (dot(self.W[i, :], self.H[:, j])[0, 0] + 1e-5)
File "/home//.local/lib/python3.9/site-packages/nimfa/methods/factorization/lfnmf.py", line 239, in
w_1 = sum(self.H[k, j] * self.V[i, j] / (dot(self.W[i, :], self.H[:, j])[0, 0] + 1e-5)
File "/usr/local/lib/python3.9/dist-packages/numpy/matrixlib/defmatrix.py", line 193, in getitem
out = N.ndarray.getitem(self, index)
IndexError: index 1213 is out of bounds for axis 1 with size 1213

@zclandry
Copy link
Author

zclandry commented May 6, 2022

Also -the user directory was removed from the paths above. Do you have any idea what the cause of this bug may be?

@zclandry
Copy link
Author

Is there any additional information that you might need to check this out?

@KingHaHaHai
Copy link

I had the same problem, was it successfully resolved?

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

2 participants