Coder Social home page Coder Social logo

nonnegfac-python's People

Contributors

kimjingu avatar ramkikannan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

nonnegfac-python's Issues

numpy.linalg.linalg.LinAlgError: Singular matrix

hello, I'm using NMF_ANLS_BLOCKPIVOT algorithm on a 200x990 matrix with this code
W1, H1, info1 = NMF_ANLS_BLOCKPIVOT().run(X1, 56, max_iter=500, verbose=1)
but after running for about 15 minutes, it shows an error for singular matrix:

File "nnmf.py", line 120, in
W1, H1, info1 = nmf().run(X1, rank, max_iter=500, verbose=1)
File "/home/navid/anaconda3/envs/fr/lib/python3.6/site-packages/nonnegfac/nmf.py", line 97, in run
(W, H) = self.iter_solver(A, W, H, k, i)
File "/home/navid/anaconda3/envs/fr/lib/python3.6/site-packages/nonnegfac/nmf.py", line 195, in iter_solver
Sol, info = nnlsm_blockpivot(W, A, init=H.T)
File "/home/navid/anaconda3/envs/fr/lib/python3.6/site-packages/nonnegfac/nnls.py", line 120, in nnlsm_blockpivot
AtA, AtB[:, not_opt_cols], PassSet[:, not_opt_cols])
File "/home/navid/anaconda3/envs/fr/lib/python3.6/site-packages/nonnegfac/nnls.py", line 322, in normal_eq_comb
Z[ix1] = nla.solve(AtA[ix2], AtB[ix1])
File "/home/navid/anaconda3/envs/fr/lib/python3.6/site-packages/numpy/linalg/linalg.py", line 394, in solve
r = gufunc(a, b, signature=signature, extobj=extobj)
File "/home/navid/anaconda3/envs/fr/lib/python3.6/site-packages/numpy/linalg/linalg.py", line 89, in _raise_linalgerror_singular
raise LinAlgError("Singular matrix")
numpy.linalg.linalg.LinAlgError: Singular matrix

I searched the singular matrix error and I got this error happens if a numpy matrix isn't invertible.
now what should I do?
sorry for my bad english and I thank you.

Handling `missing data`

Thanks ton for the wonderful package! I was wondering if there is some way in which missing data can be handled? The trivial application being MovieLens like dataset. I was wondering if instead of the usual 0 rating for missing entries in the matrix, we could just let those entries be np.NaN?

How to show matrix WH ?

Hello Mr. Kim thanks for the package, My name is Viqi Nurhaqiqi I'm student at Department of Informatics UIN Sunan Gunung Djati Bandung, I have written the following code from the example in your package :

`W_org = random.rand(3, 3)
H_org = random.rand(3, 3)

A = np.array([[0,1,0],[1,0,1],[1,1,0]])

W, H, info = NMF().run(A, 2)`

My question is how to show matrix decomposition from A ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.