Skip to contents

Equivalent to predict method for NMF, but requires only the w matrix to be supplied and not the entire NMF model. Use NNLS to project a basis factor model onto new samples.

Usage

project(w, data, L1 = 0, L2 = 0, mask = NULL, ...)

Arguments

w

matrix of features (rows) by factors (columns), corresponding to rows in data

data

a dense or sparse matrix

L1

L1/LASSO penalty

L2

L2/Ridge penalty

mask

masking on data values

Details

See nmf for more info, as well as the predict method for NMF.