Created
November 21, 2020 21:43
-
-
Save chris-lovejoy/78a63284556b76116fde60f03a95c5aa to your computer and use it in GitHub Desktop.
Adding days since published into custom score
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
# Adding days since published into custom score | |
def custom_score(viewcount, ratio, days_since_published): | |
if ratio > 5: | |
ratio = 5 | |
score = (viewcount * ratio) / days_since_published | |
return score | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment