https://medium.com/@monocosmo77/working-with-bayesian-inverse-problems-part2-machine-learning-bb2df6a2cb3b