Training an LSTM neural network to forecast time series in pybrain, python

与世无争的帅哥 提交于 2019-12-06 17:28:17

#Creating lookback window and target datain = priceList[:5] dataout = priceList[6]

Not an expert. But it seems your datain is a list with length=6 while dataout is not.

I'd guess the TypeError says it all. Whereas priceList[:5] is a list and hence iterable, priceList[6] is a single element.

You'd probably want something like

datain = priceList[:5] 
dataout = priceList[6:6]

which will make dataout a list with a single element.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!