-
Notifications
You must be signed in to change notification settings - Fork 20
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
Implementing Gini coefficient in metric.py
#72
Comments
The related paper is Journal of Computational Chemistry2016,37, 2091–2097 This relates to #4. |
Just as a warning me and @PaulWAyers tried to implement this and concluded that the equation is wrong. |
I'll look at it again and figure out the right equation and put it here. |
The equation given is correct only for the case where the data is uniformly distributed. Then Eq.(1) in this paper is identical to the second expression on the "alternative expressions" list on wikipedia
Then, for each molecule, we have a feature vector (or bitstring) with length
I think it is nice to avoid sorting. Then you can use: This is the third equation in the first line of https://en.wikipedia.org/wiki/Gini_coefficient#Definition and it might be a bit slower than the presorted version, but it does save the work (and code complexity) from the sort. Just using Eq. (1) is fine though. |
Add Gini coefficient, fixes theochem#72
No description provided.
The text was updated successfully, but these errors were encountered: