Machine learning a model for RNA structure prediction