Data-driven modeling of dynamical systems