Skip to content

The module is not working with python 3 #8

Description

@amadoudiogobarry

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'
`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions