View source: R/approach_vaeac.R
vaeac_train_model_auxiliary | R Documentation |
vaeac
modelThis function can be applied both in the initialization phase when, we train several initiated vaeac
models, and
to keep training the best performing vaeac
model for the remaining number of epochs. We are in the former setting
when initialization_idx
is provided and the latter when it is NULL
. When it is NULL
, we save the vaeac
models
with lowest VLB, IWAE, running IWAE, and the epochs according to save_every_nth_epoch
to disk.
vaeac_train_model_auxiliary(
vaeac_model,
optimizer,
train_dataloader,
val_dataloader,
val_iwae_n_samples,
running_avg_n_values,
verbose,
cuda,
epochs,
save_every_nth_epoch,
epochs_early_stopping,
epochs_start = 1,
progressr_bar = NULL,
vaeac_save_file_names = NULL,
state_list = NULL,
initialization_idx = NULL,
n_vaeacs_initialize = NULL,
train_vlb = NULL,
val_iwae = NULL,
val_iwae_running = NULL
)
vaeac_model |
A |
optimizer |
A |
train_dataloader |
A |
val_dataloader |
A |
val_iwae_n_samples |
Positive integer (default is |
running_avg_n_values |
running_avg_n_values Positive integer (default is |
verbose |
String vector or NULL.
Specifies the verbosity (printout detail level) through one or more of strings
|
cuda |
Logical (default is |
epochs |
Positive integer (default is |
save_every_nth_epoch |
Positive integer (default is |
epochs_early_stopping |
Positive integer (default is |
epochs_start |
Positive integer (default is |
progressr_bar |
A |
vaeac_save_file_names |
Array of strings containing the save file names for the |
state_list |
Named list containing the objects returned from |
initialization_idx |
Positive integer (default is |
n_vaeacs_initialize |
Positive integer (default is |
train_vlb |
A |
val_iwae |
A |
val_iwae_running |
A |
Depending on if we are in the initialization phase or not. Then either the trained vaeac
model, or
a list of where the vaeac
models are stored on disk and the parameters of the model.
Lars Henry Berge Olsen
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.