Description Usage Arguments Value Examples
View source: R/PlotTrainStats.R
MOFA inference is done using the variational Bayes algorithm,
which maximises a quantity called the Evidence Lower Bound (ELBO).
The ELBO is supposed to increase monotonically up to convergence,
but it can decrease substantially when dropping inactive factors.
For more details read the supplementary methods.
The frequency of ELBO computation as well as the convergence criteria are defined
as hyperparameters in prepareMOFA
.
All Training statistics, including the ELBO,
can be fetch from the TrainStats slot of MOFAmodel
.
1 | trainCurveELBO(object, logScale = FALSE)
|
object |
a |
logScale |
boolean indicating whether to apply log transform |
plot of ELBO values during training
1 2 3 4 5 6 7 8 9 10 | # Example on the CLL data
filepath <- system.file("extdata", "CLL_model.hdf5", package = "MOFAdata")
MOFA_CLL <- loadModel(filepath)
trainCurveELBO(MOFA_CLL)
trainCurveELBO(MOFA_CLL, logScale= TRUE)
# Example on the scMT data
filepath <- system.file("extdata", "scMT_model.hdf5", package = "MOFAdata")
MOFA_scMT <- loadModel(filepath)
trainCurveELBO(MOFA_scMT)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.