Probing the Ising Model’s Thermodynamics through Restricted Boltzmann Machines