Neural network inversion of the Tarasov function used for the computation of polymer heat capacities