nnmf {NMFN} | R Documentation |
Non-negative Matrix Factorization
nnmf(x, k, method = "nnmf_mm", maxiter = 1000, eps = 2.2204e-16)
x |
original input matrix |
k |
number of factors / components |
method |
which method to use for matrix factorization (default - multiplicative update) |
maxiter |
max number of iterations |
eps |
small threshold value |
Suhai (TImothy) Liu
## The function is currently defined as function (x, k, method = "nnmf_mm", maxiter = 1000, eps = 2.2204e-16) { if (method == "nnmf_als") { cat("Alternating Least Squares Algorithm", "\n") nnmf_als(x, k, maxiter, eps) } else { cat("Multiplicative Update Algorithm", "\n") nnmf_mm(x, k, maxiter, eps) } }