Logo Deepak Baby
  • Home
  • About
  • Experience
  • Education
  • Publications
  • More
    Recent Posts
  • Posts
  • Dark Theme
    Light Theme Dark Theme System Theme
Logo Inverted Logo
  • Tags
  • Ai
  • Basic
  • Content Organization
  • DDP
  • Deep Learning
  • Distributed Training
  • FSDP
  • Kaldi
  • Keras
  • Linux
  • Malayalam
  • Markdown
  • Matlab
  • Mkl
  • Multi-Lingual
  • Pipeline Parallelism
  • Presentation
  • Python
  • PyTorch
  • UGent
  • Vae
  • Variational Autoencoder
Hero Image
Understanding Variational Autoencoders and Implementation in Keras

Variational Autoencoders (VAEs)[Kingma, et.al (2013)] let us design complex generative models of data that can be trained on large datasets. This post is about understanding the VAE concepts, its loss functions and how we can implement it in keras. Generating data from a latent space VAEs, in terms of probabilistic terms, assume that the data-points in a large dataset are generated from a latent space. For e.g., let us assume we want to generate the image of an animal. First we imagine that it has four legs, a head and a tail. This is analogous to the latent space and from this set of characteristics that are defined in the latent space, the model will learn to generate the image of an animal.

  • deep learning
  • vae
  • variational autoencoder
  • keras
Tuesday, July 2, 2019 | 10 minutes Read
Hero Image
Tracking Multiple Losses with Keras

Often we deal with networks that are optimized for multiple losses (e.g., VAE). In such scenarios, it is useful to keep track of each loss independently, for fine-tuning its contribution to the overall loss. This post details an example on how to do this with keras. Let us look at an example model which needs to trained to minimize the sum of two losses, say mean square error (MSE) and mean absolute error (MAE). Let $\lambda_{mse}$ be the hyperparameter that controls the contribution of MSE to the toal loss. i.e., the total loss is MAE + $\lambda_{mse}$ * MSE. This loss can be implemented using:

  • deep learning
  • keras
Monday, March 4, 2019 | 2 minutes Read
Navigation
  • About
  • Experience
  • Education
  • Publications
  • Recent Posts
Contact me:
  • deepakbabycet@gmail.com
  • deepakbaby
  • Deepak Baby
  • +32 483 611 040

Liability Notice: This theme is under MIT license. So, you can use it for non-commercial, commercial, or private uses. You can modify or distribute the theme without requiring any permission from the theme author. However, the theme author does not provide any warranty or takes any liability for any issue with the theme.


Toha Theme Logo Toha
© 2025 Copyright.
Powered by Hugo Logo