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

Questions about the time of day embedding #10

Open
mb-Ma opened this issue Aug 17, 2023 · 4 comments
Open

Questions about the time of day embedding #10

mb-Ma opened this issue Aug 17, 2023 · 4 comments

Comments

@mb-Ma
Copy link

mb-Ma commented Aug 17, 2023

I noticed that only the last time step of each sample is kept by the following code:
https://github.com/zezhishao/STID/blob/f9801a5d4939e7d3eb100525c1c027cbd34630d3/stid/stid_arch/stid_arch.py#L76-L88

More specifically, the operation "t_i_d_data[:, -1, :]" is used to get the last time step from input data.

Could you please provide more interpretations?

@zezhishao
Copy link
Collaborator

Thanks for your interests.
For more details, you can refer to the discussion below the blog of STID in Zhihu:
image

@mb-Ma
Copy link
Author

mb-Ma commented Aug 18, 2023

Thank you for your fast response. I did not see these comments. :-)

Yeah. It seems an efficient solution. The purpose is just to identify different times when the current sample is, only one time step is okay which meets Ockham's Razor. From another perspective, (B, [all time step concat], N) compared to (B, [single time step embedding], N) is more redundant since all nodes are same time embedding in one sample.

@zezhishao
Copy link
Collaborator

Thank you very much for your acknowledgment! Any further discussions are welcome~

@Irelandr
Copy link

Irelandr commented Nov 3, 2024

同一序列的时间嵌入确实非常相似,但它们是否仍能体现序列内部的趋势呢?

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

3 participants