Learn R Programming

NMFN (version 2.0.1)

nnmf_als: Non-negative Matrix Factorization via alternating least squares

Description

Non-negative Matrix Factorization - alternating least squares method

Usage

nnmf_als(x, k, maxiter, eps)

Arguments

x

original input matrix

k

number of factors / components

maxiter

max number of iterations

eps

small threshold value

Value

W, H - returned decomposed matrices

Examples

Run this code
# NOT RUN {
X <- matrix(1:12, 3, 4)
results <- nnmf(X, 2, 'nnmf_als')
  
# }

Run the code above in your browser using DataLab