Skip to content

Commit

Permalink
change test_bridge_sampling to laplace
Browse files Browse the repository at this point in the history
  • Loading branch information
arrjon committed Sep 20, 2024
1 parent b88356f commit 5678150
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/sample/test_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -965,5 +965,7 @@ def test_bridge_sampling():

# compute the log evidence using harmonic mean
bridge_log_evidence = sample.evidence.bridge_sampling_log_evidence(result)
harmonic_evidence = sample.evidence.harmonic_mean_log_evidence(result)
assert np.isclose(bridge_log_evidence, harmonic_evidence, atol=tol)
laplace = sample.evidence.laplace_approximation_log_evidence(
problem, result.optimize_result.x[0]
)
assert np.isclose(bridge_log_evidence, laplace, atol=tol)

0 comments on commit 5678150

Please sign in to comment.