Skip to content

Commit

Permalink
Deprecate random_seed=-1 behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoV94 committed Dec 5, 2024
1 parent cc47288 commit 760b553
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pymc/sampling/mcmc.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,10 @@ def joined_blas_limiter():
)

if random_seed == -1:
warnings.warn(
"Setting random_seed = -1 is deprecated. Pass `None` to not specify a seed.",
FutureWarning,
)
random_seed = None
elif isinstance(random_seed, tuple | list):
warnings.warn(
Expand Down

0 comments on commit 760b553

Please sign in to comment.