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