Direct generation of protein conformational ensembles via machine learning