| nmf.gmm.select | R Documentation |
This function is experimental and still under development. The interface may change in future versions: argument names, defaults and the contents of the returned object are not yet stable. Code written against it today may need adjusting after an update. The rest of the package does not carry this caveat.
nmf.gmm.select fits nmf.gmm over a vector of K
values and reports the log-likelihood, BIC and ICL for each, selecting
K.best by BIC (K.best.icl by ICL). If a vector of known labels
is supplied via truth, the adjusted Rand index of the hard clustering
is added.
nmf.gmm.select(Y, A = NULL, rank, K = 1:5, ...)
Y, A, rank |
As in |
K |
Integer vector of candidate component counts. Default |
... |
Additional arguments passed to |
An object of class "nmf.gmm.select": a list with the
table (data frame over K), K.best (min BIC),
K.best.icl (min ICL) and fits (the fitted objects).
nmf.gmm
set.seed(1)
Y <- matrix(abs(rnorm(20 * 80)) + 1, 20, 80); A <- rbind(1, rnorm(80))
sel <- nmf.gmm.select(Y, A, rank = 2, K = 1:4, verbose = FALSE)
sel$K.best
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.