[1]张康林,叶春明,李钊慧,等.基于 Pytorch 的 LSTM 模型对股价的分析与预测[J].计算机技术与发展,2021,31(01):161-267.[doi:10. 3969 / j. issn. 1673-629X. 2021. 01. 029]
 ZHANG Kang-lin,YE Chun-ming,LI Zhao-hui,et al.Analysis and Forecast of Stock Price Based on LSTM Model of Pytorch[J].,2021,31(01):161-267.[doi:10. 3969 / j. issn. 1673-629X. 2021. 01. 029]
点击复制

基于 Pytorch 的 LSTM 模型对股价的分析与预测()
分享到:

《计算机技术与发展》[ISSN:1006-6977/CN:61-1281/TN]

卷:
31
期数:
2021年01期
页码:
161-267
栏目:
应用前沿与综合
出版日期:
2021-01-10

文章信息/Info

Title:
Analysis and Forecast of Stock Price Based on LSTM Model of Pytorch
文章编号:
1673-629X(2021)01-0161-07
作者:
张康林1 叶春明1 李钊慧1 王锦文2
1. 上海理工大学 管理学院,上海 200093; 2. 南昌大学 公共管理学院,江西 南昌 330000
Author(s):
ZHANG Kang-lin1 YE Chun-ming1 LI Zhao-hui1 WANG Jin-wen2
1. Bussiness School of University of Shanghai for Science and Technology,Shanghai 200093,China;
2. Public Administration School of Nanchang University,Nanchang 330000,China
关键词:
Pytorch自组织特征映射长短期记忆网络股票价格聚类预测
Keywords:
Pytorchself-organizing maplong-short term memoryshare priceclusterprediction
分类号:
TP183
DOI:
10. 3969 / j. issn. 1673-629X. 2021. 01. 029
摘要:
股价预测一直都是股票投资者重点关注和重点研究的方向,针对股价具有高度非线性、高噪声、动态性等问题,提出一种基于自组织特征映射(SOM) 神经网络和长短期记忆网络(LSTM) 共同应用的股价预测方法。 第一步聚类,使用python 语言实现改进的自组织特征映射神经网络算法,将 187 支股票分成三类,三类股票以盈利能力大小进行聚类,并且求出每一类所包含的股票代码;第二步预测,基于 Pytorch 深度学习框架构造长短期记忆网络模型,分别对每一类中随机的3 支股票进行股价预测,再通过均方误差和决定系数对预测结果进行评价。结果表明,在使用相同的预测模型对不同盈利能力的股票做股价预测时,盈利能力越大的股票,预测精度越高。 此研究可以为投资者筛选出盈利能力更大的股票,并且在提高股价预测精度上也具有一定的贡献。
Abstract:
Stock price prediction has always been the focus and research direction of stock investors. Aiming at the problems of highly nonlinear, high noise and dynamic of stock prices, a new stock price prediction method based on self-organizing feature map (SOM) neural network and long-short term memory (LSTM) is proposed. The first step is clustering, with python to implement an improved self-organizing feature mapping neural network algorithm. The 187 stocks are divided into three categories. The three types of stocks are clustered according to their profitability, and the stock codes included in each category are obtained. The second step of prediction is? to construct a long-term and short-term memory network model based on the Pytorch deep learning framework,to predict the stock price of three random stocks in each class,and then to evaluate the prediction results by means of mean square error and determin-ation coefficient.The results show that when using the same prediction model to make stock price predictions for stocks with different profitability,stocks with greater profitability have higher prediction accuracy. This research can screen out stocks with greater profitability for investors,and also contribute to improving the accuracy of stock price prediction.

相似文献/References:

[1]李鑫环 陈立潮 赵红艳 赵勇.基于多小波分析与SOFM的MR图像分割算法研究[J].计算机技术与发展,2009,(09):104.
 LI Xin-huan,CHEN Li-chao,ZHAO Hong-yan,et al.Research on MR Image Segmentation Based on Multi- wavelet Analysis and SOFM[J].,2009,(01):104.
[2]王莉莉 张少白.一种基于声音分类学习的神经模型研究[J].计算机技术与发展,2011,(12):127.
 WANG Li-li,ZHANG Shao-bai.Study of a Neural Model Based on Sound Category Learning[J].,2011,(01):127.
[3]范晓杰,宣士斌,唐 凤.基于混合时空特征描述子的人体动作识别[J].计算机技术与发展,2018,28(02):98.[doi:10.3969/j.issn.1673-629X.2018.02.022]
 FAN Xiao-jie,XUAN Shi-bin,TANG Feng.Realistic Human Action Recognition Based on Mixed Spatio-temporal Feature Descriptor[J].,2018,28(01):98.[doi:10.3969/j.issn.1673-629X.2018.02.022]

更新日期/Last Update: 2020-01-10