This function calculates the Gini index of a classification rule outputting probabilities. It is a classical metric in the context of Credit Scoring. It is equal to 2 times the AUC (Area Under ROC Curve) minus 1.
The numeric binary vector of the actual labels observed.
The vector of the probabilities predicted by the classification rule.
#>  0.667