Description Usage Arguments Details Value See Also Examples
Automatic rank determination PNMF based on euclidean distance.
1 2 3 4 5 6 7 8 |
X |
Input data matrix |
nmfMod |
NMF model from the NMF package |
tol |
tolerance for stopping criteria |
maxIter |
Maximum number of iterations |
verbose |
Print status messages |
Implementation of "Automatic Rank Determination in Projective Nonnegative Matrix Factorization." Zhirong Yang, Zhanxing Zhu, Erkki Oja. In the 9th International Conference on Latent Variable Analysis and Signal Separation (LVA 2010), pages 514-521, St. Malo, France, 2010 Derived from matlab code by Z. Yang, https://sites.google.com/site/zhirongyangcs/ardpnmf
sigma and wnorm are stored in the "extra" slot of the nmf object
Fitted NMF model, as defined in NMF package. The "extra" slot contains sigma and wnorm
PNMFARD
1 2 3 4 5 6 7 8 9 10 11 12 | library(NMF)
setNMFMethod("PNMFARD", pNMF::PNMFARD)
mkD <- function(NOISE=TRUE) {
n <- 1000 # rows
counts <- c(30, 10, 20, 10, 15, 15) # samples
syntheticNMF(n=n, r=counts, offset = NULL, noise = NOISE,
factors = FALSE, seed = 99)
}
k<-mkD()
estim.r2 <- nmf(k, 16, method="PNMFARD", nrun=1, seed="nndsvd")
#wnorm and sigma in the extra slot
estim.r2@extra
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.