Applications of Machine Learning in the Mathematical Physics of Polymers