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

The module is not working with python 3 #8

Open
amadoudiogobarry opened this issue Apr 23, 2020 · 3 comments
Open

The module is not working with python 3 #8

amadoudiogobarry opened this issue Apr 23, 2020 · 3 comments

Comments

@amadoudiogobarry
Copy link

Hi,
Thank you for making this the factorization module nmf available.
That said, I can't try your example because I can't install the nmf package, even after installing the cvxopt, numpy packages.
I finally installed pymf3, but the example doesn't work.
Thanks in advance for your help.

`import numpy as np
import pymf3 as pymf
data = np.array([[1.0, 0.0, 2.0], [0.0, 1.0, 1.0]])
nmf_mdl = pymf.nmf(data, num_bases=2, niter=10)
nmf_mdl.initialization()
nmf_mdl.factorize()

AttributeError Traceback (most recent call last)
in
2 import pymf3 as pymf
3 data = np.array([[1.0, 0.0, 2.0], [0.0, 1.0, 1.0]])
----> 4 nmf_mdl = pymf.nmf(data, num_bases=2, niter=10)
5 nmf_mdl.initialization()
6 nmf_mdl.factorize()

AttributeError: module 'pymf3' has no attribute 'nmf'
`

@CheShangkun
Copy link

I have the same problem.

@yustiks
Copy link

yustiks commented Jan 25, 2021

and I have the same problem

@mrmartin
Copy link

I tried running sudo python setup.py install, but got the same error

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

4 participants