get_lengthscales: Get lengthscales

View source: R/get_methods.R

get_lengthscalesR Documentation

Get lengthscales

Description

Extract the inferred lengthscale for each factor after model training.

Usage

get_lengthscales(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 lengthscale for each factor.

Examples

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

bioFAM/MOFA2 documentation built on June 12, 2024, 3:57 p.m.