get_lengthscales {MOFA2} | R 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)

[Package MOFA2 version 1.2.2 Index]