Skip to content
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

More flexible diag_normal_log_prob #26

Merged
merged 4 commits into from
Feb 28, 2024
Merged

More flexible diag_normal_log_prob #26

merged 4 commits into from
Feb 28, 2024

Conversation

SamDuffield
Copy link
Contributor

@SamDuffield SamDuffield commented Feb 27, 2024

Adds support for scalar mean and sd_diag
Adds support for unnormalized log probs (which are useful when you want sd_diag=torch.inf to be valid i.e. removes the prior) and also logs on a more user friendly scale
Adds tree_size for convenient checking of the number of elements in a TensorTree

Copy link
Contributor

@phoebeklett phoebeklett left a comment

Choose a reason for hiding this comment

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

Looks good!

@SamDuffield SamDuffield merged commit ad12454 into main Feb 28, 2024
2 checks passed
@SamDuffield SamDuffield deleted the unnorm-norm branch February 28, 2024 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants