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

Confused by the loss function. #1

Open
JinYang88 opened this issue May 29, 2018 · 2 comments
Open

Confused by the loss function. #1

JinYang88 opened this issue May 29, 2018 · 2 comments

Comments

@JinYang88
Copy link

In your code, you minimized -(oloss + nloss).mean()

which means (oloss+nloss) should be large.
So, "oloss become large and nloss become small " is expected.

Although -(oloss+nloss) decrease, I got oloss become small and nloss become large, how so?

@theeluwin
Copy link
Owner

Thank you for the feedback.
Can you provide a reduced, reproducible case sample? Like, small dataset and a configuration for it.

@gongchenooo
Copy link

When computing nloss, the author uses function .neg to make the nloss smaller when training.

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

3 participants