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

Numerically instable Gaussian cdf's - Copulas + Turing #196

Closed
DomDF opened this issue Apr 19, 2024 · 0 comments · Fixed by #197
Closed

Numerically instable Gaussian cdf's - Copulas + Turing #196

DomDF opened this issue Apr 19, 2024 · 0 comments · Fixed by #197
Assignees

Comments

@DomDF
Copy link

DomDF commented Apr 19, 2024

As documented on discouse (https://discourse.julialang.org/t/copulas-jl-turing-jl-numerical-stability/113243) - thanks for your review @lrnv - the CDF ends up out of bounds, when sampling from a posterior distribution defined by a Gaussian copula:

ERROR: TaskFailedException

nested task error: TaskFailedException

    nested task error: DomainError with 1.0000000000000058:
    `abs(x)` cannot be greater than 1.
@lrnv lrnv self-assigned this Apr 19, 2024
lrnv added a commit that referenced this issue Apr 19, 2024
@lrnv lrnv closed this as completed in #197 Apr 20, 2024
lrnv added a commit that referenced this issue Apr 20, 2024
* Try to clamp the cdf's
Fixes #196

* last clamping
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 a pull request may close this issue.

2 participants