Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

nmfCheck

Checking NMF Algorithm


Description

nmfCheck enables to quickly check that a given NMF algorithm runs properly, by applying it to some small random data.

Usage

nmfCheck(method = NULL, rank = max(ncol(x)/5, 3),
    x = NULL, seed = 1234, ...)

Arguments

method

name of the NMF algorithm to be tested.

rank

rank of the factorization

x

target data. If NULL, a random 20 x 10 matrix is generated

seed

specifies a seed or seeding method for the computation.

...

other arguments passed to the call to nmf.

Value

the result of the NMF fit invisibly.

Examples

# test default algorithm
nmfCheck()

# test 'lee' algorithm
nmfCheck('lee')

NMF

Algorithms and Framework for Nonnegative Matrix Factorization (NMF)

v0.23.0
GPL (>= 2)
Authors
Renaud Gaujoux, Cathal Seoighe
Initial release
2020-07-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.