Learning regularized Gauss-Newton methods