Thermodynamics of Learning With Parametric Probabilistic Models