link href="../pkgdown.css" rel="stylesheet"><script src="../pkgdown.js"></script><meta property="og:title" content="Variational loss — loss_variational"><meta property="og:description" content="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."><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrit