https://medium.com/@monocosmo77/applications-of-gibbs-measure-in-machine-learning-research-part7-ab4bedc77803