Neural Networks for Nonlinear Dynamical Systems