nmfCheck: Checking NMF Algorithm

Description Usage Arguments Value Examples

Description

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

Usage

1
2
  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

1
2
3
4
5
# test default algorithm
nmfCheck()

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


Search within the NMF package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.