nnmf: Non-negative Matrix Factorization

View source: R/NMFN_three_methods.R

nnmfR Documentation

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

Author(s)

Suhai (TImothy) Liu

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


NMFN documentation built on June 23, 2022, 9:11 a.m.