View source: R/NMFN_three_methods.R
nnmf | 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
X <- matrix(1:12,3,4) z.mm <- nnmf(X,3) # 3 factors via multiplicative update z.als <- nnmf(X,3,'nnmf_als') # 3 factors via alternating least square z.prob <- nnmf(X,3,'nnmf_prob') # 3 factors via multinomial
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.