read_model_file: Read a 'GCAE' autoencoder architecture file

View source: R/read_model_file.R

read_model_fileR Documentation

Read a GCAE autoencoder architecture file

Description

Read a GCAE autoencoder architecture file

Usage

read_model_file(model_filename)

Arguments

model_filename

name of a file that stores a GCAE architecture, as checked by check_model_filename. Use read_model_file to read a GCAE architecture from that file.

Value

the model as a JSON object, as can be checked by check_model

Author(s)

Richèl J.C. Bilderbeek

See Also

  • Use save_model to save a model

  • Use read_pheno_model_file to read a pheno_model

Examples

if (is_gcae_repo_cloned()) {
  # A real GCAE file
  model_filename <- get_gcae_model_filename("M1")
} else {
  # An example file
  model_filename <- get_gcaer_filename("M0.json")
}
read_model_file(model_filename)

richelbilderbeek/gcaer documentation built on March 25, 2024, 3:08 p.m.