使用股票主力资金流向数据对股票价格进行预测,使用GRU

文章介绍了基于GRU的循环神经网络模型用于股票价格预测,结合资金流向分析,通过训练MSE达到0.014,显示出对短期价格趋势的准确预测能力。与其他机器学习模型对比,GRU模型表现更优。
摘要由CSDN通过智能技术生成

摘要: 股票价格预测长久以来都是金融领域的热门研究课题,随着神经网络模型的广泛应用,出现了许多利用神经网络对股票价格进行预测的方法。本文使用基于门控制单元(GRU)的循环神经网络(RNN)模型与股票资金流向分析,尝试利用资金流向从动力学的角度对价格趋势进行学习,并进行预测。本文使用的数据为从A股随机抽取的一支股票最近1000个交易日的收盘价、涨跌幅与资金流向。本文使用MSE作为模型评估指标,模型在训练后MSE能达到0.014,模型预测与真实价格趋势上几乎一致,能够认为此模型对短期价格趋势预测较为准确。

关键词: 门控循环神经网络;价格预测;股票

ABSTRACT:  Stock price prediction has long been a popular research topic in the financial field, and with the widespread use of neural network models, many methods for predicting stock prices using neural networks have emerged. This paper uses a Recurrent Neural Network (RNN) model based on Gated Recurrent Units (GRU) and analyzes the stock fund flows to attempt to learn and predict price trends from a dynamic perspective. The data used in this study includes the closing price, change rate, and fund flow of a randomly selected A-share stock in the most recent 1000 trading days. The Mean Squared Error (MSE) is used as the model evaluation metric, and the model's MSE can reach 0.013 after training. The model's predictions are almost consistent with the true price trend, and it can be considered accurate for short-term price trend prediction.

KEY WORDS:  RNN;Price Predicting;Stocks

前 言

股票价格预测长久以来都是金融领域的热门研究课题,随着神经网络模型的广泛应用,出现了许多利用神经网络对股票价格进行预测的方法。而对于股票价格此类时间序列数据往往使用循环神经网络进行处理,普通的循环神经网络为了解决梯度消失与梯度爆炸问题需要对梯度进行裁剪因而损失了一些信息,并且可能会过度重视不重要的参数导致模型效果不佳。幸运的是,学术界已经提出许多方法来解决上述问题。最早的是长短期记忆网络(LSTM)[0],还有其简化变体:门控循环单元(GRU)[1],GRU通常可以提供与LSTM同等效果,并且计算速度快得多

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值