Description Usage Arguments Value References Examples
Calculate Gini Coefficient
1 | gini(target, score)
|
target |
A numeric binary vector (0, 1) |
score |
A numeric vector containing scores or probabilities |
The Gini Coefficient
https://www.kaggle.com/wiki/RCodeForGini
1 2 3 4 5 6 | data(predictions)
score <- predictions$score
target <- predictions$target
gini(target, score)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.