-
Notifications
You must be signed in to change notification settings - Fork 246
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 edge case of Categorical due to simplex numerical issues #1419
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Can you see if pyro-ppl/funsor#594 is also fixed?
FUNSOR_BACKEND=jax pytest test_distribution.py -k test_categorical_event_dim_conversion
Thanks for taking a look, Yerdos. There are many tests are failing after this change. I'm not sure why, will take a closer look later this week. |
@ordabayevy It seems that funsor test passes after this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Did you figure out what was wrong with the normalization in _to_logits_multinom
?
The formula that I used is wrong. We should do |
Thanks for reviewing, Yerdos! |
Fixes #1402