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

Raise error if H or Hbc have NaNs #96

Open
brendan-m-murphy opened this issue Apr 9, 2024 · 0 comments
Open

Raise error if H or Hbc have NaNs #96

brendan-m-murphy opened this issue Apr 9, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@brendan-m-murphy
Copy link
Contributor

If H or Hbc have NaNs, then pymc will raise a confusing error says that sampling couldn't be initialised. This is because every value for y has zero probability, so the logp value is negative infinite.

Adding a check for NaNs before sampling would make it easier to diagnose this problem.

@brendan-m-murphy brendan-m-murphy added the enhancement New feature or request label Apr 9, 2024
@brendan-m-murphy brendan-m-murphy self-assigned this Apr 9, 2024
@pearson01 pearson01 added this to the Errors and Testing Issues milestone Jul 4, 2024
@pearson01 pearson01 self-assigned this Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants