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

what does _init_decoder_train_connectors actually do? #15

Open
wolfshow opened this issue Apr 12, 2017 · 1 comment
Open

what does _init_decoder_train_connectors actually do? #15

wolfshow opened this issue Apr 12, 2017 · 1 comment

Comments

@wolfshow
Copy link

Can you please explain a little bit? Thanks!

@shamanez
Copy link

In the training phase you have to feed the input at each time step to the decoder and it's relevant target. Also we should modify our sequence outputs by adding padding and end of sentence tokens.
You might wonder why these padding and EOS tokens?
In the training we have to feed inputs to decoder as the decoder sequence with added EOS. Then targets should be the same sequence which is one time step ahead.
Let's take an example
a,b,c,d (input) -> p,q,r (output)
So in the decoder the input seq should be EOS,p,q,r
The targets should be p,q,r,0

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