Skip to content

Commit

Permalink
fix reproducibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jeandut committed Aug 14, 2024
1 parent edd11e1 commit 65c9d4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fedeca/utils/survival_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 += np.random.uniform(1.0 / nbins, 1.0, size=1)
times += rng.random.uniform(1.0 / nbins, 1.0, size=1)

else:
raise ValueError("Choose a larger number of ties")
Expand Down

0 comments on commit 65c9d4f

Please sign in to comment.