-
-
Notifications
You must be signed in to change notification settings - Fork 127
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
Question about the calculation of time-gap matrix #294
Comments
Hi there 👋, Thank you so much for your attention to PyPOTS! You can follow me on GitHub to receive the latest news of PyPOTS. If you find PyPOTS helpful to your work, please star⭐️ this repository. Your star is your recognition, which can help more people notice PyPOTS and grow PyPOTS community. It matters and is definitely a kind of contribution to the community. I have received your message and will respond ASAP. Thank you for your patience! 😃 Best, |
@GMavrak Thank you! I'll investigate this. |
Hi @GMavrak, I've made PR #297 to keep the delta matrix calculation the same as the paper proposal. Could you please review it? And here are some of my comments that may deserve attention:
Clearly, the missingness masks of the 1st and 2nd features are different, especially at the 5th step. With the current calculation method, the delta matrix is
and is different in the 1st feature and 2nd one. But with the calculation in the PR, the delta matrix we get is
both features have the same values. It seems that the current calculation is more reasonable. |
@WenjieDu I have reviewed the PR and confirm that it is OK. Concerning the comments, I see the point. However, the way that the time-gap matrix is defined, as far as I understand it, is:
Thank you, |
Thanks, George. Merged the PR. That's true and I agree with you. My comments are left for issue tracking and for related information retrieval in the future. If you like PyPOTS, please consider joining us on Slack https://join.slack.com/t/pypots-org/shared_invite/zt-1gq6ufwsi-p0OZdW~e9UW_IA4_f1OfxA 🤗 |
Hello,
I wish you a happy new year.
I have a question about the calculation of the delta matrix. By examining the nested function of the _parse_delta_torch function, the following code for populating the matrix for time-step > 1:
d.append(torch.ones(1, n_features, device=device) + (1 - mask[step]) * d[-1])
Shouldn't be mask[step - 1] instead of mask[step], as the calculation of the time-gap in time-step t depends upon the mask value of the time-step t-1?
Thank you,
George
The text was updated successfully, but these errors were encountered: