Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

数据集是否可以不用date列 #33

Closed
ZHE0725 opened this issue Mar 6, 2023 · 3 comments
Closed

数据集是否可以不用date列 #33

ZHE0725 opened this issue Mar 6, 2023 · 3 comments

Comments

@ZHE0725
Copy link

ZHE0725 commented Mar 6, 2023

您好!我的数据集中不包含date列,是否可以在此情况下进行正常训练?大致应该在哪里修改代码?

@wuhaixu2016
Copy link
Collaborator

可以的,你需要做这些工作
(1)去掉dataloader.py中对于date列的信息提取
(2)将x_mark_enc,x_mark_dec设置为None
(3)改变embedding方式,去掉temporal_embeding

@ZHE0725
Copy link
Author

ZHE0725 commented Mar 6, 2023

可以的,你需要做这些工作 (1)去掉dataloader.py中对于date列的信息提取 (2)将x_mark_enc,x_mark_dec设置为None (3)改变embedding方式,去掉temporal_embeding

您好,我狂试了一晚上,还是有一些问题,data_loader.py的__getitem__方法的返回值seq_x_mark与seq_y_mark该怎么处理呢,显示不可以设为None,与之对应的exp_long_term_forecasting.py中的train方法内的batch_x_mark和batch_y_mark也无法处理,求指教

@wuhaixu2016
Copy link
Collaborator

那你也可以直接设置成ones,然后不使用它即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants