Successful application of machine learning in the discovery of new polymers