Description Usage Arguments Value Examples
View source: R/compareModels.R
Different trained objects of MOFAmodel
are compared
in terms of the final value of the ELBO statistics
and the model with the highest ELBO value is selected.
1 | selectModel(models, plotit = TRUE)
|
models |
a list containing |
plotit |
show a plot of the characteristics of the compared
|
a single MOFAmodel
with the best ELBO statistics from the provided list
1 2 3 4 5 6 7 8 9 10 | # Simulate Data
data <- makeExampleData()
# Create MOFA model
MOFAobject <- createMOFAobject(data)
# Prepare MOFA model
MOFAobject <- prepareMOFA(MOFAobject)
# Train several instances of MOFA models
n_inits <- 3
MOFAlist <- lapply(seq_len(n_inits), function(i) runMOFA(MOFAobject, outfile=tempfile()))
selectModel(MOFAlist)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.