VAE-Tensorflow | Variational Auto-Encoder implementation in Tensorflow | Machine Learning library
kandi X-RAY | VAE-Tensorflow Summary
kandi X-RAY | VAE-Tensorflow Summary
Variational Auto-Encoder implementation in Tensorflow
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Train the model
- Loads from checkpoint_dir
- Saves model to checkpoint_dir
- Build the model
VAE-Tensorflow Key Features
VAE-Tensorflow Examples and Code Snippets
Community Discussions
Trending Discussions on VAE-Tensorflow
QUESTION
I think I understand the paper of Auto-Encoding Variational Bayes. And I am reading some tensorflow codes implementing this paper. But I don't understand their loss function in those codes. Since lots of codes are written in same way, probably I am wrong.
The problem is like this. The following equation is from AEVB paper. The loss function is like this equation. This equation can be divided into two: Regularization term and Reconstruction term. Therefore, it becomes
...ANSWER
Answered 2017-Aug-08 at 12:54Equation (10) is the log-likelihood loss we want to maximize. It is equivalent to minimizing the negative log-likelihood (NLL). This is what optimization functions do in practice. Note that the Reconstruction_term
is already negated in tf.nn.sigmoid_cross_entropy_with_logits
(see https://github.com/tegg89/VAE-Tensorflow/blob/master/model.py#L96). We need to negate the Regularization_term
as well.
So the code implements Loss_function = -Regularization_term + -Reconstruction_term
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install VAE-Tensorflow
You can use VAE-Tensorflow like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page