predict.nnmf {NNLM} | R Documentation |
nnmf
Methods for nnmf object returned by nnmf
## S3 method for class 'nnmf' predict(object, newdata, which = c("A", "W", "H"), method = object$options$method, loss = object$options$loss, ...) ## S3 method for class 'nnmf' print(x, ...)
object |
An NNMF object returned by |
newdata |
A new matrix of x. No required when |
which |
Either 'A' (default), 'W' or 'H' |
method |
Either 'scd' or 'lee'. Default to |
loss |
Either 'mse' or 'mkl'. Default to |
... |
Further arguments passed to 'nnlm' or 'print' |
x |
An NNMF object returned by |
'A' or a class of 'nnlm' for 'predict.nnmf' and no return for 'print'.
x <- matrix(runif(50*20), 50, 20) r <- nnmf(x, 2) r newx <- matrix(runif(50*30), 50, 30) pred <- predict(r, newx, 'H')