Reconstruction of pairwise interactions using energy-based models*This article is an updated version of: Carlo L and Christoph F 2021 Reconstruction of pairwise interactions using energy-based models Proc. Mathematical and Scientific Machine Learning Conf. (29th December 2021)