The variational autoencoder (VAE) gives a probabilistic representation of a molecule in the latent space with each attribute of a latent vector corresponding to a distribution. We have implemented both the encoder and decoder as gated recurrent units (GRU) and we make use of the SMILES notation for representing chemical molecules. We have adapted an architecture similar to what is reported by Bowman et al. .