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

softmax log-det-jac #49

Open
spinkney opened this issue Jul 28, 2022 · 1 comment
Open

softmax log-det-jac #49

spinkney opened this issue Jul 28, 2022 · 1 comment

Comments

@spinkney
Copy link
Collaborator

In the paper and code is -N * log1p_exp(log_sum_exp(y)) + sum(y) there's a missing 0.5 * log(N) somewhere. It's a constant so doesn't affect sampling but we should have it in. When I AD through it comes up with that constant.

PR #46 has a more efficient version (I think, it's more efficient).

@spinkney
Copy link
Collaborator Author

Pinging @bob-carpenter

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

No branches or pull requests

1 participant