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

两个协变量之间有什么关系? #18

Open
3211345556 opened this issue Nov 12, 2022 · 4 comments
Open

两个协变量之间有什么关系? #18

3211345556 opened this issue Nov 12, 2022 · 4 comments

Comments

@3211345556
Copy link

在single_step_main.py中第40行,dataset2covariate中elect:3,在preprocess_elect.py中第101行num_covariates = 4,这两个协变量之间有什么关系呢?为什么分别为3和4?

@Zhazhan
Copy link

Zhazhan commented Nov 12, 2022

preprocess_elect.py中的4个协变量中第1个没有使用,因此dataset2covariate中的3个协变量对应preprocess_elect.py中的后3个协变量

@3211345556
Copy link
Author

感谢!这四个协变量分别指的是什么呢?

@Zhazhan
Copy link

Zhazhan commented Nov 12, 2022

不客气。第一个协变量是当前时间相对于序列开始时间的时间步数(做了归一化),第二个协变量是当前时间对应周几,第三个是当前时间对应一天中的第几个小时,第四个是当前时间的月份。考虑到实际应用中第一个协变量可能不容易获取,最后就没有使用。

@3211345556
Copy link
Author

明白

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