Informer2020 icon indicating copy to clipboard operation
Informer2020 copied to clipboard

IndexError: tuple index out of range

Open goodlucky111 opened this issue 2 years ago • 5 comments

我用只有两列(date,tourist)的数据,用时间去预测游客到达量,训练完开始测试的时候就报错 :preds = preds.reshape(-1, preds.shape[-2],preds.shape[-1]) IndexError: tuple index out of range 请问这是什么原因

goodlucky111 avatar Feb 20 '23 12:02 goodlucky111

能输出一下您preds的shape看看吗

MountVoom avatar Mar 14 '23 05:03 MountVoom

我也遇到了这样的情况,debug发现pred并没有传入(test_data, batch_x, batch_y, batch_x_mark, batch_y_mark)参数,不知道是什么原因

sav1tor avatar Jun 08 '23 08:06 sav1tor

同问,老师抽时间能不能解答一下

GAN-AIS avatar Oct 10 '23 16:10 GAN-AIS

同问

yanyipeo avatar Mar 02 '24 12:03 yanyipeo

我也遇到了同样的问题,用的是custom,我把数据扩充后问题解决了

yanyipeo avatar Mar 02 '24 14:03 yanyipeo