-
-
Notifications
You must be signed in to change notification settings - Fork 986
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
Implement a SoftAsymmetricLaplace distribution #2872
Conversation
# left = Integrate[e^(-t/L - ((x+t)/S)^2/2)/sqrt(2 pi)/S, {t,0,Infinity}] | ||
# = 1/2 e^((2 L x + S^2)/(2 L^2)) erfc((L x + S^2)/(sqrt(2) L S)) | ||
# right = Integrate[e^(-t/R - ((x-t)/S)^2/2)/sqrt(2 pi)/S, {t,0,Infinity}] | ||
# = 1/2 e^((S^2 - 2 R x)/(2 R^2)) erfc((S^2 - R x)/(sqrt(2) R S)) |
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.
the approach sounds reasonable to me. I haven't checked the details but we can trust the tests I think.
@fehiepsi @neerajprad any ideas how to fix coveralls? Our config seems pretty different from the parallel example on github/marketplace/actions. |
The coveralls issue is not related to this PR so I just made a fix and merged to see if the dev branch passes CI. We can change what to put to |
Thanks for reviewing @fehiepsi ! |
Resolves #2868
This adds a flexible univariate distribution with exponential tails and an infinitely differentiable concave log density.
Numerical stability
This may be numerically unstable due to the
log(erfc(-))
, which will be replace bytorch.logerfc(-)
after pytorch/pytorch#31945Tested