Skip to content

Commit

Permalink
should more model positions give a higher likelihood?
Browse files Browse the repository at this point in the history
  • Loading branch information
rhayes777 committed Jan 8, 2025
1 parent 949a388 commit 62f7c54
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions test_autolens/point/model/test_andrew_implementation.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,27 @@ def test_nan_model_positions(
],
)
assert fit.log_likelihood() == -4.40375330990644


def test_duplicate_model_position(
data,
noise_map,
):
model_positions = np.array(
[
(-1.0749, -1.1),
(1.19117, 1.175),
(1.19117, 1.175),
]
)
fit = Fit(
data=data,
noise_map=noise_map,
model_positions=model_positions,
)

assert np.allclose(
fit.all_permutations_log_likelihoods(),
[-1.14237812, -0.87193683],
)
assert fit.log_likelihood() == -4.211539531047171

0 comments on commit 62f7c54

Please sign in to comment.