autoencoder_variational: Build a variational autoencoder
Description
A variational autoencoder assumes that a latent, unobserved random variable produces
the observed data and attempts to approximate its distribution. This function
constructs a wrapper for a variational autoencoder using a Gaussian
distribution as the prior of the latent space.
Usage
autoencoder_variational(
network,
loss = "binary_crossentropy",
auto_transform_network = TRUE
)
Value
A construct of class "ruta_autoencoder"
Arguments
network
Network architecture as a "ruta_network" object (or coercible)
loss
Reconstruction error to be combined with KL divergence in order to compute
the variational loss
auto_transform_network
Boolean: convert the encoding layer into a variational block if none is found?