View source: R/rbitr_helpers.R
winning_chances | R Documentation |
Applies the scaling function 2 / (1 + exp(-0.004 * scores
)) - 1 to the
scores
parameter.
winning_chances(scores)
inv_winning_chances(scaled_scores)
scores |
A numeric vector of chess engine evaluations. |
scaled_scores |
A numeric vector of scaled chess engine evaluations. |
The function winning_chances()
applies the exponential scaling
function 2 / (1 + exp(-0.004 * scores
)) - 1 to the scores
parameter.
The inverse function inv_winning_chances()
reverses the transformation.
The scaling function is borrowed from lichess
A numeric vector of winning chances.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.