Learn R Programming

ruta (version 1.0.2)

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)

Arguments

reconstruction_loss

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

Value

A "ruta_loss" object

References

See Also

autoencoder_variational

Other loss functions: contraction, correntropy