-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
IndexError using ordered transform #3680
Comments
Did you try specifying the test_val? I think this is still required currently. |
Yep, you need to do: import pymc3 as pm
with pm.Model():
x = pm.Uniform('x', 0., 1., shape=2, transform=pm.distributions.transforms.ordered, testval=np.asarray([.5, .9]))
pm.sample(init='adapt_diag') You probably should use a Chain transformation to make it sample better, see eg: cell [22] in https://docs.pymc.io/notebooks/api_quickstart.html |
Can you explain what you mean by |
The transformations are now documented at https://docs.pymc.io/api/distributions/transforms.html Please let us know if this material is not clear -- I did the extraction of docstrings from code, but I'm not responsible for any of the code itself. So it would be good to know if these leave unanswered questions, so we can fix them. |
@sammosummo you can check out this "release blog post" by Colin: https://colindcarroll.com/2018/07/20/why-im-excited-about-pymc3-v3.5.0/ Specifically, the section 5 on the ordered transform. Hope this helps! |
The text was updated successfully, but these errors were encountered: