Prediction and Control of Complex Systems via Neural Networks