Algorithm Optimizer in GA-LSTM for Stock Price Forecasting
Keywords:Time Series, Forecasting, Deep Learning, Genetic Algorithm, Long Short-Term Memory
Fluctuating stock prices make it difficult for investors to see investment opportunities. One tool that can help investors overcome this is represented by forecasting techniques. Long Short-Term Memory (LSTM) is one of deep learning methods used in forecasting time series. The training and success of deep learning is strongly influenced by the selection of hyperparameters. This research uses a hybrid method between the Genetic Algorithm (GA) and LSTM to find a suitable model for predicting stock prices. GA is used in optimizing the architecture such as the number of epochs, window size, and the number of LSTM units in the hidden layer. Tuning optimizer is also carried out using several optimizers to achieve the best value. From method that has been applied, it shows that the method has a good level of accuracy with MAPE values below 10% in every optimizer used. The error rate generated is quite low, in case-1 with a minimum RMSE value of 93.03 and 94.40, & in case-2 with an RMSE value of 104.99 and 150.06 during training and testing. A fairly stable and small value is generated by setting it using the Adam Optimizer.
How to Cite
Copyright (c) 2024 YL Sukestiyarno, et al.
This work is licensed under a Creative Commons Attribution 4.0 International License.