https://medium.com/@monocosmo77/working-with-latent-representations-part2-machine-learning-41223248cd8d