-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Add metrics.gini_index_score() #28535
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
Comments
Recently, there was a discussion about this in #28144 (PR #28156). Quote from one of the core developers (#28144 (comment)):
|
I'm not sure, but there seems to be 2 different gini index/coefficient definitions:
|
You are right, but I'm assuming that a similar argument (too simple to include in the library) could be made for Gini coefficient you are requesting (sklearn/core-devs will know better). |
See #21320 (comment) . |
Almost a duplicate: #10003. |
Describe the workflow you want to enable
The Gini index metric (that is based on Lorenz curve) is widely used in the insurance industry for evaluating the performance (ranking power) of various risk models.
Describe your proposed solution
2 sklearn examples already includes code for calculating the gini index metric here and here
Related to #28534
Describe alternatives you've considered, if relevant
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: