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

Negative loss while using BNI implementation option #21

Open
CeceliaSoh opened this issue Sep 7, 2023 · 1 comment
Open

Negative loss while using BNI implementation option #21

CeceliaSoh opened this issue Sep 7, 2023 · 1 comment

Comments

@CeceliaSoh
Copy link

Hi @jiawei-ren
I am trying to implement the Balanced MSE to other long tail regression task. Firstly, I tried the BNI, and then the negative traning loss are often computed and they are used to update the model. I would like to ask the appearance of negative loss is usual while using the BNI?

@jiawei-ren
Copy link
Owner

Hi @CeceliaSoh, sorry for the very late reply. Yes, it is normal.

BNI is equivalent to a negative log-likelihood, which should be positive. However, I omitted the constant bucket weight in the numerator (i.e., the MSE term) so that it could go negative in my implementation.

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