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.
Arguments
- Y, A, rank
As in
nmf.gmm.- K
Integer vector of candidate component counts. Default
1:5.- ...
Additional arguments passed to
nmf.gmm(e.g.cov,X.init,nstart,maxit,seed). Also acceptstruth(a length-N vector of known class labels for the ARI column),verbose(logical, print the table; defaultTRUE), andcores(evaluate theKcandidates in parallel; defaultgetOption("mc.cores", 1L)). Parallelism uses a PSOCK cluster on Windows and forking elsewhere; because eachKis an independent self-seeded fit and results are returned in order, the table and the selectedKare identical for anycores.
Value
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).