Studying polymer physics by machine learning.