Structural Risk Minimization for Learning Nonlinear Dynamics