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

question about the srnn_loss #53

Open
sukun1045 opened this issue Feb 21, 2019 · 3 comments
Open

question about the srnn_loss #53

sukun1045 opened this issue Feb 21, 2019 · 3 comments

Comments

@sukun1045
Copy link

In the translate.py, when you test with srnn seeds, it looks like the srnn_loss you print out is only for the last action instead of an average loss of all actions.

@una-dinosauria
Copy link
Owner

Hi,

Sorry this is pretty hard for me to follow. Could you point to me to specific lines in the code, and what you think they should be instead? Better yet, you could open a pull request with the fix and then we can discuss it.

Cheers,

@sukun1045
Copy link
Author

Sure, in translate.py line 193, you have the srnn_loss for one action. However, after the for loop of all actions, in line 472, you print out the srnn_loss, which is only the srnn_loss for the last action. If i am correct, you should sum up srnn_losses for all actions and print out the average.

@una-dinosauria
Copy link
Owner

I think I see it. It works fine when there is only one action, but not when we train on all actions.
Would you be up for submitting a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants