Skip to content

Commit

Permalink
add tests for cond and cens likelihood scores
Browse files Browse the repository at this point in the history
  • Loading branch information
sallen12 committed Oct 8, 2024
1 parent 689989f commit c765625
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ def test_clogs(backend):
res_co = _logs.clogs_ensemble(obs, fct, axis=-1, cens=False, backend=backend)
assert res.shape == (N,)
assert res_co.shape == (N,)
assert np.allclose(res, res0, rtol=0.0)
assert np.allclose(res_co, res0, rtol=0.0)
assert np.allclose(res, res0, atol=1e-7)
assert np.allclose(res_co, res0, atol=1e-7)

fct = fct.T
res0 = _logs.clogs_ensemble(obs, fct, axis=0, backend=backend)
assert np.allclose(res, res0, rtol=0.0)
assert np.allclose(res, res0, atol=1e-7)

obs, fct = 6.2, [4.2, 5.1, 6.1, 7.6, 8.3, 9.5]
a = 8.0
Expand Down

0 comments on commit c765625

Please sign in to comment.