nnmf {NMFN}
Non-negative Matrix Factorization
Description
Non-negative Matrix Factorization
Usage
nnmf(x, k, method = "nnmf_mm", maxiter = 1000, eps = 2.2204e-16)
Arguments
- 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
Examples
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
Documentation reproduced from package NMFN, version 2.0. License: GPL
