基于PyTorch框架LSTM深度学习股票预测系统
LSTM Deep Learning Stock Prediction System Based on PyTorch Framework
摘要: 随着机器学习与深度学习的发展,传统的时间序列模型已经不能满足人们对于股票预测准确性的要求。因此,本文引入深度学习中基于PyTorch框架的LSTM循环神经网络模型对创业300指数的收盘价进行预测,通过设置迭代次数、遗忘门偏置值以及LSTM单元数,对比模型的预测误差。研究结果表明,迭代次数为200、LSTM单元数为2、遗忘门偏置值为0.4的LSTM模型对创业300指数收盘价走势的拟合误差最小,平均绝对百分比误差达到0.0109,为进一步使用PyTorch框架构建循环神经网络准确预测股价提供了依据。
Abstract:
With the development of machine learning and deep learning, the traditional time series model has been unable to meet people’s requirements for the accuracy of stock forecast. Therefore, this paper introduced the LSTM recurrent neural network model based on PyTorch framework in deep learning to predict the closing price of Entrepreneurship 300 Index, and compared the forecast error of the model by setting the number of iterations, the value of the forgetting gate bias and LSTM unit numbers. The research shows that the LSTM model with 200 iterations, 2 LSTM units and 0.4 forgetting gate bias value has the smallest fitting error for the closing price trend of Entrepreneurship 300 Index, and average absolute percentage error reaches 0.0109, providing a basis for further using PyTorch framework to construct recurrent neural network to accurately predict stock price.
参考文献
|
[1]
|
于海姝, 蔡吉花, 夏红. ARIMA模型在股票价格预测中的应用[J]. 经济师, 2015(11): 156-157.
|
|
[2]
|
石佳, 刘威, 冯智超, 等. 基于ARIMA模型的股市价格规律分析与预测[J]. 统计学与应用, 2020, 9(1): 101-114.
|
|
[3]
|
崔旭盛, 李鑫, 宗建新, 刘灵娣, 靳鹏博, 董学会. 基于GARCH族模型的中药材市场连翘价格波动分析[J]. 北方园艺, 2021(4): 144-150.
|
|
[4]
|
侯瑞环, 徐翔燕. 基于改进GM(1, 1)模型的中长期人口预测[J]. 统计与决策, 2021, 37(1): 186-188.
|
|
[5]
|
王禹. 基于Cart树和Boosting算法的股票预测模型[D]: [硕士学位论文]. 哈尔滨: 哈尔滨理工大学, 2018.
|
|
[6]
|
马雪姣. 基于支持向量回归机模型的价格预测[D]: [硕士学位论文]. 郑州: 郑州大学, 2018.
|
|
[7]
|
阎馨, 吴书文, 屠乃威, 朱永浩, 付华. 基于逻辑回归和增强学习的瓦斯突出预测[J/OL]. 控制工程: 1-7[2021-03-07].[CrossRef]
|
|
[8]
|
陈可心, 黄刚. CStock: 一种结合新闻与股价的股票走势预测模型[J]. 计算机技术与发展, 2020, 30(9): 18-22.
|
|
[9]
|
韩山杰, 谈世哲. 基于TensorFlow进行股票预测的深度学习模型的设计与实现[J]. 计算机应用与软件, 2018, 35(6): 267-271+291.
|