| fitted.nmf | R Documentation |
Returns the reconstructed matrix \hat{Y} = X B from a fitted
NMF model.
For nmf.sem objects, returns the equilibrium prediction
\hat{Y}_1 = M_{model} Y_2 if available. Supply Y1 and
Y2 to get the direct reconstruction
X (C_1 Y_1 + C_2 Y_2) instead.
## S3 method for class 'nmf'
fitted(object, ...)
## S3 method for class 'nmfae'
fitted(object, ...)
## S3 method for class 'nmfre'
fitted(object, type = c("blup", "fixed"), ...)
## S3 method for class 'nmf.sem'
fitted(object, ...)
object |
A fitted model object of class |
... |
For |
type |
For |
The fitted matrix X B.
nmfkc, nmfae, nmfre,
nmf.sem, residuals.nmf
result <- nmfkc(matrix(runif(50), 5, 10), rank = 2)
fitted(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.