create_gcae_train_more_args: Create the CLI arguments to resume training the 'GCAE'

View source: R/create_gcae_train_more_args.R

create_gcae_train_more_argsR Documentation

Create the CLI arguments to resume training the GCAE

Description

Create the CLI arguments to resume training the GCAE

Usage

create_gcae_train_more_args(gcae_setup, resume_from, epochs, save_interval)

Arguments

gcae_setup

GCAE model setup, as created by create_gcae_setup, read from file by read_gcae_setup_file, checked by check_gcae_setup, and saved to file by save_gcae_setup.

resume_from

the epoch to resume from, as checked by check_resume_from

epochs

number of epochs, as checked by check_epochs

save_interval

epoch intervals at which to save state of model, and at which to calculate the valid loss

Value

the CLI arguments

Author(s)

Richèl J.C. Bilderbeek

Examples

gcae_setup <- create_test_gcae_setup()
args <- create_gcae_train_more_args(
  gcae_setup = gcae_setup,
  resume_from = 0,
  epochs = 1,
  save_interval = 1
)
# 'python3' is the path to Python3
# 'run_gcae.py' is the path to the GenoCAE Python script
full_args <- c("python3", "run_gcae.py", args)
cat(full_args)

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