trainCurveFactors: Training curve for the number of active factors

Description Usage Arguments Value Examples

View source: R/PlotTrainStats.R

Description

The MOFA model starts with an initial number of factors and inactive factors can be dropped during training if they explain small amounts of variation (as defined in getDefaultModelOptions). This allows the model to automatically infer the dimensionality of the latent space. The corresponding hyperparameters are defined in prepareMOFA.
All training statistics, including the number of active factors, can be fetch from the TrainStats slot of MOFAmodel .

Usage

1

Arguments

object

a MOFAmodel object.

Value

plot of number of active factors during training

Examples

1
2
3
4
5
6
7
8
# Example on the CLL data
filepath <- system.file("extdata", "CLL_model.hdf5", package = "MOFAdata")
MOFA_CLL <- loadModel(filepath)
trainCurveFactors(MOFA_CLL)
# Example on the scMT data
filepath <- system.file("extdata", "scMT_model.hdf5", package = "MOFAdata")
MOFA_scMT <- loadModel(filepath)
trainCurveFactors(MOFA_scMT) 

MOFA documentation built on Feb. 11, 2021, 2:01 a.m.