Created
June 26, 2012 11:43
-
-
Save ratpik/2995323 to your computer and use it in GitHub Desktop.
Ranking system
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def calculate_score(votes, item_hour_age, gravity=1.8): | |
return (votes - 1) / pow((item_hour_age+2), gravity) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment