You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have questions about a specific use case, or you are not sure whether this is a bug or not, please post it to our discourse channel: https://discourse.pymc.io
Description of your problem
pm.Uniform is not bounded when using another transform.
That is the expected behavior. You are overwriting the default interval transform when setting tr_order. The chain is exactly what you should be doing in this case.
The lower/upper determine the normalization constant and logp bounds. A uniform(0, 1) (default parameters) and uniform(0, 0.5), both with an interval transform(0, 0.5) will have a different normalization constant (and only the later "integrates to 1"). This is usually not important for mcmc sampling as a proportional posterior is sufficient. An interval transform larger than the lower/upper parameters (e.g interval (0, 2)) on the other hand would create issues because the samplers can now propose values that have 0 probability in the uniform).
By the way this kind of discussion is better placed in our forum https://discourse.pymc.io/ as we try to keep github issue for development issues. Feel free to open an thread there and tag me if you have further questions.
If you have questions about a specific use case, or you are not sure whether this is a bug or not, please post it to our discourse channel: https://discourse.pymc.io
Description of your problem
pm.Uniform
is not bounded when using another transform.This code gives negatives
DRi
to my Operator.If I explicitely add the bounds transform
transform=tr.Chain([tr_bounds, tr_order])
, this works as expected.Please provide the full traceback.
Please provide any additional information below.
Should there be an error when the bounds are not enforced?
Versions and main components
The text was updated successfully, but these errors were encountered: