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
ENH: stats: make distribution instances picklable #4821
Conversation
It passes (except for pep8), but indeed I agree it would be better to merge this after the release split. |
rebased. |
Question: is it a problem that this loses changes to attributes that are made after instantiation ( |
Here's
I also note that freezing distributions also relies on |
I noticed indeed that freezing does the same. It's odd though that there are a bunch of attributes that we aren't preventing users from changing, but assuming that they don't. It would be easy to add a private method to update |
Some of these can be changed by a user (unlikely but technically possible.) Hence keep the originals *and* update them with current values when pickling or freezing.
Done. |
ENH: stats: make distribution instances picklable
Thanks Evgeni, merged. |
Intends to close gh-4816.
(this likely has a milestone "after 0.16 is done")
Note to self:multivariate distributions arelikelyOK,but it's worth checking.