Dynamic modeling of chaotic time series by neural networks