愉快的学习就从翻译开始吧_Multi-step Time Series Forecasting_10_Multi-Step LSTM Network_Make LSTM Forecasts

Make LSTM Forecasts/让LSTM预测

The next step is to use the fit LSTM network to make forecasts.

下一步是用拟合的LSTM网络来做预测

A single forecast can be made with the fit LSTM network by calling model.predict(). Again, the data must be formatted into a 3D array with the format [samples, timesteps, features].

通过调用model.predict(),拟合的LSTM网络可以做单个预测,再次,数据必须被格式化为【samples,timesteps,features】的3D数组。

We can wrap this up into a function called forecast_lstm().

我们可以把这打包到一个名为forecast_lstm()的函数。

We can call this function from the make_forecasts() function and update it to accept the model as an argument. The updated version is listed below.

我们可以从make_forecasts()中调用这个函数,并将其更新为接受模型作为参数,下面列出了更新版本

This updated version of the make_forecasts() function can be called as follows:

make_forecasts()函数的更新版本可以调用如下:


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值