Skip to content

Commit

Permalink
Add a score difference tolerance in test_surv_search to make the test…
Browse files Browse the repository at this point in the history
… more stable
  • Loading branch information
DrShushen committed Dec 2, 2024
1 parent 4eed867 commit 9385b8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/studies/test_risk_studies.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ def test_surv_search(sample_for_search: bool) -> None:
metrics = evaluate_survival_estimator(model_v2, X, T, Y, eval_time_horizons)
score_v2 = metrics["raw"]["c_index"][0]

assert score_v2 >= score_v1
EPS = 0.05
assert score_v2 + EPS >= score_v1

model = study.fit()
assert model.is_fitted()
Expand Down

0 comments on commit 9385b8d

Please sign in to comment.