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

RunTimeWarnings during evaluation of block-filter #3

Open
Jegmi opened this issue Jun 13, 2021 · 1 comment
Open

RunTimeWarnings during evaluation of block-filter #3

Jegmi opened this issue Jun 13, 2021 · 1 comment

Comments

@Jegmi
Copy link
Collaborator

Jegmi commented Jun 13, 2021

The following errors occur when running the block-filter.

RuntimeWarning: invalid value encountered in log

or

RuntimeWarning: divide by zero encountered in log

@Jegmi
Copy link
Collaborator Author

Jegmi commented Jun 13, 2021

Hypothesis: during the evaluation of the log likelihood, some of the posterior rates becomes "g0dt"

L, L_pt = [np.log(v[gkey][k] / p['g0dt']) if v['y'][k] > 0 # spike
else np.log((1 - v[gkey][k]) / (1 - p['g0dt'])) # no spike
for gkey in ['gbar','gmap']] 

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