View source: R/compare_models.R
compare_elbo | R Documentation |
MOFA
objects in terms of the final value of the ELBO statistics and number of inferred factorsDifferent objects of MOFA
are compared in terms of the final value of the ELBO statistics.
For model selection the model with the highest ELBO value is selected.
compare_elbo(models, log = FALSE, return_data = FALSE)
models |
a list containing |
log |
logical indicating whether to plot the log of the ELBO. |
return_data |
logical indicating whether to return a data.frame with the ELBO values per model |
A ggplot
object or the underlying data.frame if return_data is TRUE
# Using an existing trained model on simulated data
file <- system.file("extdata", "model.hdf5", package = "MOFA2")
model1 <- load_model(file)
model2 <- load_model(file)
# Compare ELBO between models
## Not run: compare_elbo(list(model1,model2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.