-
Notifications
You must be signed in to change notification settings - Fork 23
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
Improve LLR algorithm #794
base: master
Are you sure you want to change the base?
Conversation
i wouldnt want to have it in a dead state, so id prefer if this is also implemented |
Implemented. |
Nice, this uses the same MLE formula as fishtest right? |
@gahtan-syarif Yes, it does. |
Not sure why macOS is crashing. We do however often do an intentional floating point divide by zero when calculating bounds for θ, which should not usually be an issue. |
I assume a review by @vdbergh would be good. |
To debug this further, you could create a new branch that outputs a lot more debug information. Then open a PR from that branch to the master branch of the fork in your repo. Github should then run the CI on your fork, where you can study the debug output in more detail. |
later today i check if i can reproduce this on my mac |
it hit your own assert lol
|
values just before the assert
|
fyi, macos passes with |
thanks, i'll look at this this weekend |
tl;dr: fix in ff9276f Root cause: Allowing fp contraction results in improper results arising where we would normally expect +/- inf to be generated. Compare: Normal run:
With contraction:
This occurs because the values of the bounds of theta are the negative inverses of elements for phi, thus generation of +/- infinity is practically guaranteed here. FP contraction messes with the precision of the divide by zero. The solution to this is to avoid computation of |
Normalized elo only for commentry.
Happy to add logistic elo support if required.