https://medium.com/@monocosmo77/working-with-latent-representations-part1-machine-learning-c2330495cb6e