Learn R Programming

rtemis (version 0.79)

d.NMF: Non-negative Matrix Factorization (NMF)

Description

Perform NMF decomposition using NMF::nmf

Usage

d.NMF(x, x.test = NULL, k = 2, method = "brunet", nrun = 30,
  scale = TRUE, center = FALSE, verbose = TRUE, ...)

Arguments

x

Input data

x.test

Optional test set. Will be projected on to NMF basis

k

Integer vector of length 1 or greater. Rank of decomposition

method

NMF method. Defaults to "brunet". See NMF::nmf

nrun

Integer: Number of runs to perform

scale

Logical: If TRUE, scale input data before projecting

center

Logical: If TRUE, also center input data if scale is TRUE

verbose

Logical: If TRUE, print messages to screen. Default = TRUE

...

Additional parameters to be passed to NMF::nmf

Value

rtDecom object

Details

Project scaled variables to NMF bases. Input must be n by p, where n represents number of cases, and p represents number of features. NMF will be applied to the transpose of the n x p matrix.

See Also

Other Decomposition: d.CUR, d.H2OAE, d.H2OGLRM, d.ICA, d.ISOMAP, d.KPCA, d.LLE, d.MDS, d.PCA, d.SPCA, d.SVD, d.TSNE, d.UMAP