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

Assertion in LLRcalc.py (v * w < 0) #2009

Open
vondele opened this issue May 14, 2024 · 1 comment
Open

Assertion in LLRcalc.py (v * w < 0) #2009

vondele opened this issue May 14, 2024 · 1 comment

Comments

@vondele
Copy link
Member

vondele commented May 14, 2024

looking in the logs for assertion errors on an unrelated topic, this assert appeared a couple of times as well:

Mar 21 16:23:48 tests.stockfishchess.org pserve[17087]:   File "/home/fishtest/fishtest/server/fishtest/stats/LLRcalc.py", line 94, in MLE_t_value
Mar 21 16:23:48 tests.stockfishchess.org pserve[17087]:     x = secular(pdf1)
Mar 21 16:23:48 tests.stockfishchess.org pserve[17087]:   File "/home/fishtest/fishtest/server/fishtest/stats/LLRcalc.py", line 33, in secular
Mar 21 16:23:48 tests.stockfishchess.org pserve[17087]:     assert v * w < 0
Mar 21 16:23:48 tests.stockfishchess.org pserve[17087]: AssertionError:
--
Mar 21 20:28:27 tests.stockfishchess.org pserve[17087]:   File "/home/fishtest/fishtest/server/fishtest/stats/LLRcalc.py", line 94, in MLE_t_value
Mar 21 20:28:27 tests.stockfishchess.org pserve[17087]:     x = secular(pdf1)
Mar 21 20:28:27 tests.stockfishchess.org pserve[17087]:   File "/home/fishtest/fishtest/server/fishtest/stats/LLRcalc.py", line 33, in secular
Mar 21 20:28:27 tests.stockfishchess.org pserve[17087]:     assert v * w < 0
Mar 21 20:28:27 tests.stockfishchess.org pserve[17087]: AssertionError:
--
Mar 22 04:46:00 tests.stockfishchess.org pserve[17087]:   File "/home/fishtest/fishtest/server/fishtest/stats/LLRcalc.py", line 94, in MLE_t_value
Mar 22 04:46:00 tests.stockfishchess.org pserve[17087]:     x = secular(pdf1)
Mar 22 04:46:00 tests.stockfishchess.org pserve[17087]:   File "/home/fishtest/fishtest/server/fishtest/stats/LLRcalc.py", line 33, in secular
Mar 22 04:46:00 tests.stockfishchess.org pserve[17087]:     assert v * w < 0
Mar 22 04:46:00 tests.stockfishchess.org pserve[17087]: AssertionError:
@vdbergh
Copy link
Contributor

vdbergh commented May 14, 2024

This should happen in the beginning of the test when there are very few games and the approximations used are not valid.

I agree it is not nice. I will see if this can be handled more gracefully.

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

2 participants