-
Notifications
You must be signed in to change notification settings - Fork 6
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
Variable referenced before assignment in 3D KDE #12
Comments
I just got this again with event 833111 from 2016. I get it reliably when I run with Simply changing
What, if any, undesirable consequences might this have? |
I think your suggestion for solving this problem would result in the possibility of no successful trials for the clustering step. Will
|
OK. The more immediate cause is that the for the 3D KDE, the BIC is occasionally coming up as -inf because the posterior is identically zero at some of the sample points. Why would that happen? Is this just underflow? |
If those points are in the clusters that we just cut out of the posterior, then they can be far enough away from the other points that their posterior underflows to zero, yes. I'm not sure what to do about this.... Will
|
Guarantee that best_means is defined by accepting any BIC value, even -inf. In my testing, the algorithm does always terminate. Fixes farr#12.
Guarantee that best_means is defined by accepting any BIC value, even -inf. In my testing on 500 of the first2years events, the algorithm does always terminate. Fixes farr#12.
I occasionally get this traceback:
Looking at the
_set_up_kmeans
function, the immediate cause is probably thatbic
evaluates tonp.NINF
on every loop iteration. Strictly speaking, it's also possible that the loop countntrials
is zero and the loop body never runs, but this is unlikely becausentrials
seems to come straight from the program's command line arguments.This is event 317140 from the 2016 scenario in the first2years paper.
I'll set the random seed to a fixed value from now on so that the results are reproducible.
The text was updated successfully, but these errors were encountered: