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

why loss is negtive? #18

Open
cyj95 opened this issue Nov 4, 2022 · 1 comment
Open

why loss is negtive? #18

cyj95 opened this issue Nov 4, 2022 · 1 comment

Comments

@cyj95
Copy link

cyj95 commented Nov 4, 2022

图片

@cytotoxicity8
Copy link

The loss is therotically negative log-likelihood, and the likelihood is computed as {1/sqrt(2pi)}^n * exp(-z^Tz / 2) * Jac.
=> The negative log-likelihood: n/2 * log(2pi) + z^Tz / 2 - logJac

  1. The likelihood can be itself over 1 anyway.
  2. Because n/2 * log(2pi) aren't computed for the actual computing. (It is constant). The loss is lower than the real negative log-likelihood. Refer to loss in fastflow.py.

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