Skip to content

Commit

Permalink
Fix double counted priors
Browse files Browse the repository at this point in the history
  • Loading branch information
andreicuceu committed May 23, 2024
1 parent b76505e commit 6d7066f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vega/vega_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ def log_lik(self, params=None, direct_pk=None):
log_norm -= 0.5 * self.data[name].data_size * np.log(2 * np.pi)

# Compute log lik
log_lik = log_norm - log_det - 0.5 * (chi2 + prior_chi2)
log_lik = log_norm - log_det - 0.5 * chi2

# Add priors normalization
for prior in self.priors.values():
Expand Down

0 comments on commit 6d7066f

Please sign in to comment.