Skip to content

How is acpl calculated? #8867

Answered by benediktwerner
dryguy asked this question in Q&A
May 5, 2021 · 1 comments · 6 replies
Discussion options

You must be logged in to vote

Here is the relevant code: https://github.com/ornicar/lila/blob/master/modules/analyse/src/main/Accuracy.scala

For white, it starts at 15cp and for black with the eval after the first move (i.e. before black's first move). Values are capped at 1000 and mates are also counted like that. Then, calculate the difference between before and after each turn and cap the value at 0 (i.e. you can always only make a position worse or hold it, never improve it). And ofc you need to take care that the sign is changed appropriately depending on which side you are looking at, i.e. negate the value for white since the value is displayed as a loss.

I think that should be it. Then just take the mean of all…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@jacksonthall22
Comment options

@benediktwerner
Comment options

@dryguy
Comment options

@jacksonthall22
Comment options

@jacksonthall22
Comment options

Answer selected by benediktwerner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants