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's the difference between 'nmt.py' in session 2 and session 3? #29

Closed
amirj opened this issue Jan 9, 2016 · 5 comments · Fixed by #35
Closed

What's the difference between 'nmt.py' in session 2 and session 3? #29

amirj opened this issue Jan 9, 2016 · 5 comments · Fixed by #35

Comments

@amirj
Copy link

amirj commented Jan 9, 2016

Unfortunately, following the difference in the source codes does not help me to solve the logical difference between 'nmt.py' in session 2 and session 3. Would you please describe the logical difference?

@amirj amirj changed the title What's the difference between session 2 and session 3? What's the difference between 'nmt.py' in session 2 and session 3? Jan 9, 2016
@orhanf
Copy link
Collaborator

orhanf commented Jan 20, 2016

@amirj nmt.py in session 2 and session 3 should be identical. Synched them here, can you check that please? If it works i can merge it with the central.

@amirj
Copy link
Author

amirj commented Jan 21, 2016

@orhanf I don't understand the relation between this link and the topic!
By the way, when I diff 'nmt.py' in session 2 and session 3 it seems that they are different to some extent. For example:

     shared_vars = [tparams[_p(prefix, 'U')],
                    tparams[_p(prefix, 'Wc')],
-                   tparams[_p(prefix, 'Wd_att')],
+                   tparams[_p(prefix, 'W_comb_att')],
                    tparams[_p(prefix, 'U_att')],
                    tparams[_p(prefix, 'c_tt')],
                    tparams[_p(prefix, 'Ux')],
-                   tparams[_p(prefix, 'Wcx')]]
+                   tparams[_p(prefix, 'Wcx')],
+                   tparams[_p(prefix, 'U_nl')],
+                   tparams[_p(prefix, 'Ux_nl')],
+                   tparams[_p(prefix, 'b_nl')],
+                   tparams[_p(prefix, 'bx_nl')]]

It seems that the attention mechanism has been changed in session3.

@orhanf
Copy link
Collaborator

orhanf commented Jan 21, 2016

lol, sorry my bad, i meant this. Actually it was session2 that has changed, and session3 is not adapted for those changes.

@amirj
Copy link
Author

amirj commented Jan 21, 2016

Is it means that learning with the current version of nmt.py in session3 leads to incorrect results?

On ۱ بهمن ۱۳۹۴ ه‍.ش., at ۲۰:۲۲, Orhan Firat notifications@github.com wrote:

lol, sorry my bad, i meant this orhanf@9199ac0. Actually it was session2 that has changed, and session3 is not adapted for those changes.


Reply to this email directly or view it on GitHub #29 (comment).

@orhanf
Copy link
Collaborator

orhanf commented Jan 22, 2016

Not incorrect results, actually the original version. Session2 implements an improved version tho.

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

Successfully merging a pull request may close this issue.

2 participants