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

Poor Approximation by SNMF/R #185

Open
jacobdornEcon opened this issue Jul 18, 2024 · 0 comments
Open

Poor Approximation by SNMF/R #185

jacobdornEcon opened this issue Jul 18, 2024 · 0 comments

Comments

@jacobdornEcon
Copy link

Apologies for three issues, but I figured I should post minimum reproducible examples for three issues I've run into.

Suppose I want to do sparse non-negative matrix factorization on the matrix $(1, 2) \ (2, 4)$. I run:
fitted(nmf(matrix(c(1, 2, 2, 4), nrow = 2), 1, 'snmf/r'))
I would like to get the perfect rank-1 approximation $(1 \ 2) * (1, 2) = (1, 2) \ (2, 4)$. However, SNMF returns $(0.92, 1.84) \ (1.84, 3.68)$.

I assume there is something about the SNMF $L_1$ penalty that pulls the predictions towards zero. Is it clear what argument to change, and how, to get better fit under SNMF?

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

1 participant