-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
fix: deep copy nuts_sampler_kwarg to prevent .pop
side effects
#7652
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
fix: deep copy nuts_sampler_kwarg to prevent .pop
side effects
#7652
Conversation
|
The kwargs.pop in The only one that needs is the Line 341 in e6c5b1a
|
Thank you for correcting me, @ricardoV94; it means a lot to me. Thank you! |
Thanks @inclinedadarsh Once the tests pass we can merge |
Description
Deep copy the
nuts_sampler_kwargs
to prevent the function (.pop
method) mutating the original passed dictonary.Related Issue
dict.pop
inpm.sample
leads to side effects #7632Checklist
Type of change
📚 Documentation preview 📚: https://pymc--7652.org.readthedocs.build/en/7652/