https://medium.com/@monocosmo77/applications-of-gibbs-measure-in-machine-learning-research-part5-63386e6a66b6