Towards Theoretical and Empirical Foundations of Machine Learning for Differential Equations