-
Notifications
You must be signed in to change notification settings - Fork 129
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
Introduce Calculate Elo API for external use. #1742
Introduce Calculate Elo API for external use. #1742
Conversation
7cb1c30
to
e360949
Compare
Maybe consider renaming "DD" in "DDWL" to make clear this is not just about DD Also, for the purpose discussed on discord, this probably should have an nginx cache enabled. |
2cf0431
to
db543fb
Compare
solved the issue of CI
|
f7e40bf
to
3cb7683
Compare
ad7a644
to
ddadc22
Compare
DEV updated. |
It works but it seems like handling errors does not work. any idea what's wrong with calling |
ddadc22
to
5a9e684
Compare
|
If I read correctly the code, |
5a9e684
to
ee52c51
Compare
initialized the mandatory Class variables to use the function and return a 400. |
This should make it possible for external use to calculate the ELo based on Either (Ptnml or WDL) and elo0, elo1 bounds (elo_model is optional and defaults to "normalized"). The format is: https://tests.stockfishchess.org/api/calc_elo?LL=93&LD=18711&DDWL=58877&WD=18739&WW=100&elo0=-1.75&elo1=0.25 needs testing. Introduce Calculate Elo API for external use. This should make it possible for external use to calculate the ELo based on Either (Ptnml or WDL) and elo0, elo1 bounds (elo_model is optional and defaults to "normalized"). The format is: https://tests.stockfishchess.org/api/calc_elo?LL=93&LD=18711&DDWL=58877&WD=18739&WW=100&elo0=-1.75&elo1=0.25 needs testing. Introduce Calculate Elo API for external use. This should make it possible for external use to calculate the ELo based on Either (Ptnml or WDL) and elo0, elo1 bounds (elo_model is optional and defaults to "normalized"). The format is: https://tests.stockfishchess.org/api/calc_elo?LL=93&LD=18711&DDWL=58877&WD=18739&WW=100&elo0=-1.75&elo1=0.25 needs testing.
ee52c51
to
5e966eb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG on DEV
PROD updated, nginx configured to serve the route with the pserve instance on port 6545. The nginx admin should check for the nginx cache. Thank you @peregrineshahin :) |
This should make it possible for external use to calculate the ELo based on Either (Ptnml or WDL) and elo0, elo1 bounds (elo_model is optional and defaults to "normalized").
The format is:
https://tests.stockfishchess.org/api/calc_elo?LL=93&LD=18711&DDWL=58877&WD=18739&WW=100&elo0=-1.75&elo1=0.25
needs testing.