project | R Documentation |
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.
project(w, data, L1 = 0, L2 = 0, mask = NULL, upper_bound = 0, ...)
w |
matrix of features (rows) by factors (columns), corresponding to rows in |
data |
a dense or sparse matrix |
L1 |
L1/LASSO penalty |
L2 |
L2/Ridge penalty |
mask |
masking on data values |
upper_bound |
maximum value permitted in least squares solutions, essentially a bounded-variable least squares problem between 0 and |
... |
arguments passed to |
See nmf
for more info, as well as the predict
method for NMF.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.