hyliush / deep-time-series

Deep learning PyTorch library for time series forecasting
Apache License 2.0
113 stars 23 forks source link

lstm模型训练 #2

Open anywayxubin opened 2 years ago

anywayxubin commented 2 years ago

怎么使用tcn,lstm来训练模型 !python -u main.py --model 'tcn' --dataset 'ETTh1' --data "ETTh1" 报错:TypeError: forward() takes 2 positional arguments but 5 were given 能告诉我下吗

hyliush commented 2 years ago

改成python -u main.py --model 'tcn' --dataset 'ETTh1' --data "ETTh1" --input_parmas x,默认输入有四个,需要手动改一下。另外,args.importance参数是为了和计算特征重要性的包匹配设置的,没啥用,后续会统一一下这个参数。

发件人: anywayxubin @. 发送时间: 2022年5月16日 16:44 收件人: hyliush/deep-time-series @.> 抄送: Subscribed @.***> 主题: [hyliush/deep-time-series] lstm模型训练 (Issue #2)

怎么使用tcn,lstm来训练模型 !python -u main.py --model 'tcn' --dataset 'ETTh1' --data "ETTh1" 报错:TypeError: forward() takes 2 positional arguments but 5 were given 能告诉我下吗

— Reply to this email directly, view it on GitHubhttps://github.com/hyliush/deep-time-series/issues/2, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALXIFUSRM3B3QOK5LHPXXS3VKIDFNANCNFSM5WAW44CA. You are receiving this because you are subscribed to this thread.Message ID: @.**@.>>

Shenxiyao12 commented 1 year ago

image

还是不懂怎么改,希望作者大大讲的再详细一点

Shenxiyao12 commented 1 year ago

image 我把输入参数改成这样了,不知道对不对,请作者大大指正

hyliush commented 1 year ago

检查arg里的input params参数,lstm只需要x一个参数

在 2023年4月8日,20:36,Shenxiyao12 @.***> 写道:



[image]https://user-images.githubusercontent.com/95265223/230721383-c9064acc-704c-4ef1-bf83-90e14f98bdf0.png

还是不懂怎么改,希望作者大大讲的再详细一点

— Reply to this email directly, view it on GitHubhttps://github.com/hyliush/deep-time-series/issues/2#issuecomment-1500883280, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALXIFURUOUJAKENFVIP2I3LXAFLVTANCNFSM5WAW44CA. You are receiving this because you commented.Message ID: @.***>