Optimasi Model Long Short-Term Memory dalam Peramalan Harga Penutupan Saham Harian dengan Metode Grid Search
Main Article Content
Abstract
This study aims to develop a stock price forecasting model for PT Telkom Indonesia (Persero) Tbk using the Long Short-Term Memory (LSTM) method and to determine the parameter combination that yields the best predictive performance. A quantitative approach was employed, applying machine learning techniques to historical stock price data. The LSTM model was selected for its ability to learn temporal patterns from sequential data through a memory mechanism within a Recurrent Neural Network. Parameter optimization was conducted using a grid search method, considering various combinations of the number of neurons, batch size, and epochs. Model performance was evaluated using validation loss, Mean Absolute Error (MAE), and Mean Absolute Percentage Error (MAPE). The results indicate that the optimal parameter combination consists of 64 neurons and a batch size of 32, achieving a validation loss of 0.00126. The model produced an MAE of 62.80 and an MAPE of 2.2%. These findings demonstrate that the LSTM model, with the selected parameters, exhibits a relatively low level of prediction error on the evaluation data. This research offers an alternative, data-driven approach to support the analysis of stock price movements and provides quantitative information to assist investors in their investment decision-making processes