
Last chance! 50% off unlimited learning
Sale ends in
Non-negative Matrix Factorization
nnmf(x, k, method = "nnmf_mm", maxiter = 1000, eps = 2.2204e-16)
original input matrix
number of factors / components
which method to use for matrix factorization (default - multiplicative update)
max number of iterations
small threshold value
# NOT RUN {
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
# }
Run the code above in your browser using DataLab