https://medium.com/@monocosmo77/revisiting-variational-autoencoders-part9-machine-learning-2024-bbdf167c10bb