Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by tedmiston

10 years ago

Can you elaborate on the ranking methodology eg is it:

    sum([u.karma for u in users_who_mentioned])

Or something more complicated?

1 comment

tedmiston

Reply

leandot  10 years ago

  book_entry['rank'] = (avg_karma_count * avg_karma + book_entry['karma'] * book_entry['karma_count']) / (book_entry['karma_count'] + avg_karma_count)

Where avg_karma_count and avg_karma are the weekly values.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities