https://medium.com/@monocosmo77/revisiting-variational-autoencoders-part7-machine-learning-2024-7a00db270a2d