FastFlow icon indicating copy to clipboard operation
FastFlow copied to clipboard

why loss is negtive?

Open cyj95 opened this issue 3 years ago • 1 comments

图片

cyj95 avatar Nov 04 '22 09:11 cyj95

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.

cytotoxicity8 avatar Nov 04 '22 11:11 cytotoxicity8