Machine learning for molecular simulation