lstm做回归预测_回归分析lstm网络预测未来价格

lstm做回归预测

加密货币和神经网络(Cryptocurrency and Neural Network)

Note from Towards Data Science’s editors: While we allow independent authors to publish articles in accordance with our rules and guidelines, we do not endorse each author’s contribution. You should not rely on an author’s works without seeking professional advice. See our Reader Terms for details.

Towards Data Science编辑的注意事项:虽然我们允许独立作者按照我们的规则和指南发表文章,但我们不认可每位作者的贡献。 您不应在未征求专业意见的情况下依赖作者的作品。 有关详细信息,请参见我们的阅读器条款

Prediction of stock price is quite a challenging task because prices are highly volatile and mostly stochastic movement with non-linear nature. Here, the problem we have in hand is a price prediction issue and we’re trying to predict a numerical value defined in a range (from 9000 to 12500 approx). This problem fits the Regression Analysis framework. We shall be using neural network architecture to try to solve the problem here. Motivation of using neural network is that, it is one of the intelligent data mining techniques that identify a fundamental trend from data and to generalize from it.

预测股票价格是一项非常具有挑战性的任务,因为价格具有很大的波动性,并且大多是具有非线性性质的随机运动。 在这里,我们面临的问题是价格预测问题,我们正在尝试预测一个定义在某个范围(大约9000至12500)之间的数值。 这个问题适合于回归分析框架。 我们将使用神经网络架构来尝试解决此问题。 使用神经网络的动机是,它是从数据中识别出基本趋势并从中进行概括的一种智能数据挖掘技术。

We’ll build a Deep Neural Network here that does some forecasting for us and use it to predict future price. Let us load the hourly frequency data.

我们将在这里建立一个深度神经网络,为我们做一些预测,并用它来预测未来的价格。 让我们加载每小时频率数据。

资料载入 (Data loading)

Image for post
Image for post

We have a total of 2001 data points representing Bitcoin in USD . We’re interested in predicting the closing price for future dates.

我们总共有2001个数据点代表美元的比特币。 我们有兴趣预测未来日期的收盘价。

When we see a time-series, we always want to know if the value of the current time step affects the next one.

当我们看到一个时间序列时,我们总是想知道当前时间步长的值是否影响下一个时间步长。

plt.figure(figsize = (15,5))
plt.plot(btc.close)
plt.title('BTC Close price (Hourly frequency)')
plt.xlabel ('Date_ti
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值