-
Notifications
You must be signed in to change notification settings - Fork 14
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
Compute logistic and logistic_logjac together #42
Comments
I think there was an earlier version that did something like this, but I think the current solution is better numerically when |
Good point, definitely worth checking the numerical behavior |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I noticed this bit of code:
There's a neat trick that can speed this up. If we write
σ=logistic
(for brevity) thenσ'=σ*(1-σ)
So something like
The text was updated successfully, but these errors were encountered: