Learn R Programming

ruta (version 1.2.0)

loss_variational: Variational loss

Description

Specifies an evaluation function adapted to the variational autoencoder. It combines a base reconstruction error and the Kullback-Leibler divergence between the learned distribution and the true latent posterior.

Usage

loss_variational(reconstruction_loss)

Value

A "ruta_loss" object

Arguments

reconstruction_loss

Another loss to be used as reconstruction error (e.g. "binary_crossentropy")

References

See Also

\link{autoencoder_variational}

Other loss functions: contraction(), correntropy()