Description Usage Arguments Value Examples
Trains a VAE or autoencoder model. This acts as a wrapper for keras::fit().
1 2 3 4 5 6 7 8 9 | train_model(
model,
train_data,
num_epochs = 10,
batch_size = 1,
validation_split = 0.15,
shuffle = FALSE,
verbose = 1
)
|
model |
the keras model to be trained; this should be the vae returned from |
train_data |
training data; this should be a binary |
num_epochs |
number of epochs to train for |
batch_size |
batch size for mini-batch stochastic gradient descent; default is 1, detailing pure SGD; if a larger batch size is used (e.g. 32), then a larger number of epochs should be set (e.g. 50) |
validation_split |
split percentage to use as validation data |
shuffle |
whether or not to shuffle data |
verbose |
verbosity levels; 0 = silent; 1 = progress bar and epoch message; 2 = epoch message |
a list containing training history; this holds the loss from each epoch which can be plotted
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.