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

add epsilon for stability #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

HackingSMA
Copy link

I copied this confidence_penalty implementation for use in another (unrelated) model and ran into issues on rare occasions, where trying to take the log of zero yields a loss of NaN and breaks training.

BTW, thanks for the great repo. It's been really informative to pick apart the code and read the papers linked in the comments that correspond to the implementation. Great work!

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 this pull request may close these issues.

2 participants