selectModel {MOFA} | R Documentation |
MOFAmodel
objectsDifferent 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.
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
# 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)