A Data Organization Method for LSTM and Transformer When Predicting Chinese Banking Stock Prices
Authors:
Open Access
- 4 January 2022
- journal article
- research article
- Published by Wiley in Discrete Dynamics in Nature and Society
- Vol. 2022 (1)
Abstract
The accurate prediction of stock prices is not an easy task. The long short‐term memory (LSTM) neural network and the transformer are good machine learning models for times series forecasting. In this paper, we use LSTM and transformer to predict prices of banking stocks in China’s A‐share market. It is shown that organizing the input data can help get accurate outcomes of the models. In this paper, we first introduce some basic knowledge about LSTM and present prediction results using a standard LSTM model. Then, we show how to organize the input data during the training period and give the comparison results for not only LSTM but also the transformer model. The numerical results show that the prediction results of LSTM and transformer can be improved after the input data are organized when training.Keywords
Funding Information
- National Natural Science Foundation of China (12001504, 41874165)
- Fundamental Research Funds for the Central Universities (2652019320)
This publication has 19 references indexed in Scilit:
- Stock Market Analysis: A Review and Taxonomy of Prediction TechniquesInternational Journal of Financial Studies, 2019
- Stock Price Prediction on Daily Stock Data using Deep Neural Networks2018
- Deep learning for stock prediction using numerical and textual information2016
- An Adaptive Network-Based Reinforcement Learning Method for MPPT Control of PMSG Wind Energy Conversion SystemsIEEE Transactions on Power Electronics, 2016
- A LSTM-based method for stock returns prediction: A case study of China stock market2015
- Reinforcement-Learning-Based Intelligent Maximum Power Point Tracking Control for Wind Energy Conversion SystemsIEEE Transactions on Industrial Electronics, 2015
- Support Vector Regression for prediction of stock trend2013
- Supervised Sequence Labelling2012
- Multiband Prediction Model for Financial Time Series with Multivariate Empirical Mode DecompositionDiscrete Dynamics in Nature and Society, 2012
- Long Short-Term MemoryNeural Computation, 1997