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

Trainable decay scheme issue #3

Open
CameronSCarlin opened this issue Jan 3, 2019 · 4 comments
Open

Trainable decay scheme issue #3

CameronSCarlin opened this issue Jan 3, 2019 · 4 comments

Comments

@CameronSCarlin
Copy link

GRU-D/GRUD.py

Line 120 in 9f877f8

x = mask * x + (1 - mask) * ( delta_x * x + (1 - delta_x) * x_mean)

Hi,
My understanding of Equation 11 in the GRU-D paper is that the two x values on the right side of this equation are supposed to be different values. I believe mask * x to be correct, as that is multiplying x of the current time step. However, I believe delta_x * x is incorrect, as this x should be the value of x most recently observed prior to the current time step t.

@Thartvigsen
Copy link

This is worth fixing! Otherwise it's decaying the current imputed value.

@2M-kotb
Copy link

2M-kotb commented Feb 2, 2019

@Thartvigsen I noticed this issue not fixed yet in the code!!!!

@Thartvigsen
Copy link

Thartvigsen commented Feb 2, 2019

@DeepWolf90 For now, update the equations in your local version so they are accurate. I'm sure the author is aware of the bug by now. Hopefully it'll be sorted out soon!

@zhiyongc
Copy link
Owner

Hi @CameronSCarlin,
Thanks for posting the flaw in the code. You are definitely correct. The issue is fixed in the updated version.
Also, thanks for your reminding and suggestions! @Thartvigsen and @DeepWolf90.

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

4 participants