How to Predict Stock Prices with a Multilayer Perceptron (MLP) Neural Network
Predicting stock prices is one of the simple applications of AI in finance. Here I'm using Keras, which is a high-level deep learning API in TensorFlow.
I have attempted to predict the future stock price of Padini, a fashion company in Malaysia, and the following graph shows the results of my prediction:
It's tiring to train an AI, since you need to test the model with different parameters and settings. I have spent a few hours to adjust the model and find its best settings. It really requires a good intuition. But when you done it, you will feel excited!
Disclaimer: This AI model's prediction results are not completely accurate, please do not invest according to the prediction results, otherwise you would lose money and I will not be responsible.
Here I will explain the mathematical algorithms behind the MLP Model and provide the Python code in Jupyter to train the AI.
By executing the code below in Jupyter, you can find the minimum stock price and when does it happen.
Comments
Post a Comment