Skip to content

Implement Ordered distribution factory #7603

New issue

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

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

Already on GitHub? # to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ricardoV94
Copy link
Member

@ricardoV94 ricardoV94 commented Dec 3, 2024

Closes #7297


📚 Documentation preview 📚: https://pymc--7603.org.readthedocs.build/en/7603/

@github-actions github-actions bot added enhancements hackathon Suitable for hackathon labels Dec 3, 2024
def support_point_ordered(op, rv, dist):
# FIXME: This does not work with the default ordered transform
# It leads to a -inf log_jac_det
# return support_point(dist)
Copy link
Member Author

@ricardoV94 ricardoV94 Dec 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aseyboldt @lucianopaz any idea if we could easily modify the OrderedTransform to work nicely with equal values in the constrained space? The current one maps a [0, 0, 0] vector to [0, -inf, -inf]. My guess is not.

But then I don't have a nice way to define a valid support_point. I could try to add an increasing jitter but that will sooner or later fail for bounded distributions.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancements hackathon Suitable for hackathon
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Ordered distribution factory
2 participants