Description Usage Arguments Value Examples
Method to load a trained MOFA
The training of mofa is done using a Python framework, and the model output is saved as an .hdf5 file, which has to be loaded in the R package.
1 2 3 4 5 6 7 8 9 |
file |
an hdf5 file saved by the mofa Python framework |
sort_factors |
logical indicating whether factors should be sorted by variance explained (default is TRUE) |
on_disk |
logical indicating whether to work from memory (FALSE) or disk (TRUE). |
load_data |
logical indicating whether to load the training data (default is TRUE, it can be memory expensive) |
remove_outliers |
logical indicating whether to mask outlier values. |
remove_inactive_factors |
logical indicating whether to remove inactive factors from the model. |
verbose |
logical indicating whether to print verbose output (default is FALSE) |
a MOFA
model
1 2 3 | #' # Using an existing trained model on simulated data
file <- system.file("extdata", "model.hdf5", package = "MOFA2")
model <- load_model(file)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.