Description Usage Arguments Value Examples
View source: R/compare_models.R
Different 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.
1 | 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
1 2 3 4 5 6 7 | # 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.