nnmf {NMFN}R 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



## 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)
    }
  }

[Package NMFN version 1.0 Index]