From 8824a79ee19b8bb40cddbb619570deb9d2624ba8 Mon Sep 17 00:00:00 2001 From: jeandut Date: Wed, 14 Aug 2024 13:40:55 +0200 Subject: [PATCH] fix reproducibility --- fedeca/utils/survival_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fedeca/utils/survival_utils.py b/fedeca/utils/survival_utils.py index 56f6e62..773396b 100644 --- a/fedeca/utils/survival_utils.py +++ b/fedeca/utils/survival_utils.py @@ -422,7 +422,7 @@ def generate_data( # (rightfully) will act in a weird way. See the birth outer join in # https://github.com/CamDavidsonPilon/lifelines/blob/4377caf5a6224941ee3ab34c413ad668d4173274/lifelines/utils/__init__.py#L567 # therefore we add a small quantity to every time - times += rng.random.uniform(1.0 / nbins, 1.0, size=1) + times += rng.uniform(1.0 / nbins, 1.0, size=1) else: raise ValueError("Choose a larger number of ties")