get_elbo: Get ELBO

Description Usage Arguments Details Value Examples

View source: R/get_methods.R

Description

Extract the value of the ELBO statistics after model training. This can be useful for model selection.

Usage

1
get_elbo(object)

Arguments

object

a MOFA object.

Details

This can be useful for model selection.

Value

Value of the ELBO

Examples

1
2
3
4
# Using an existing trained model
file <- system.file("extdata", "model.hdf5", package = "MOFA2")
model <- load_model(file)
elbo <- get_elbo(model)

MOFA2 documentation built on Nov. 8, 2020, 7:28 p.m.