Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Samplers depend on global seeding #5093

Closed
ricardoV94 opened this issue Oct 21, 2021 · 2 comments
Closed

Samplers depend on global seeding #5093

ricardoV94 opened this issue Oct 21, 2021 · 2 comments

Comments

@ricardoV94
Copy link
Member

ricardoV94 commented Oct 21, 2021

direction = logbern(np.log(0.5)) * 2 - 1

if logbern(size2 - size1):

if logbern(tree2.log_size - log_size):

pymc/pymc/math.py

Lines 214 to 217 in 8ed23e0

def logbern(log_p):
if np.isnan(log_p):
raise FloatingPointError("log_p can't be nan.")
return np.log(np.random.uniform()) < log_p

@ricardoV94
Copy link
Member Author

Related to #4301

@ricardoV94 ricardoV94 changed the title NUTS behavior depends on global seeding Samplers depend on global seeding Apr 15, 2022
@ricardoV94
Copy link
Member Author

Closing in favor of #5797

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant