Generalization And Optimization In The Interpolation Regime: From Linear Models To Neural Networks