https://medium.com/@monocosmo77/working-with-graphical-models-part2-machine-learning-2024-3f5c726040e8