Modeling the chaos with neural networks