get_scales: Get scales

View source: R/get_methods.R

get_scalesR Documentation

Get scales

Description

Extract the inferred scale for each factor after model training.

Usage

get_scales(object)

Arguments

object

a MOFA object.

Details

This can be used only if covariates are passed to the MOFAobject upon creation and GP_factors is set to True.

Value

A numeric vector containing the scale for each factor.

Examples

# Using an existing trained model
file <- system.file("extdata", "MEFISTO_model.hdf5", package = "MOFA2")
model <- load_model(file)
s <- get_scales(model)

bioFAM/MOFA2 documentation built on Feb. 1, 2024, 6:41 a.m.