Skip to content

Commit

Permalink
fix sign before logdet in logprob
Browse files Browse the repository at this point in the history
  • Loading branch information
kisnikser committed Nov 26, 2024
1 parent edcfd14 commit 831002d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/relaxit/distributions/InvertibleGaussian.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def log_prob(self, value):
log_det_jacobian = - (K - 1) * torch.log(self.temperature).item() + torch.sum(torch.log(g), dim=-1, keepdim=True) + torch.log(residual)

# Adjust the log probability by the Jacobian determinant
log_prob = log_prob_normal + log_det_jacobian
log_prob = log_prob_normal - log_det_jacobian

return log_prob

Expand Down

0 comments on commit 831002d

Please sign in to comment.