mrfakename commited on
Commit
7ba1f09
1 Parent(s): db70ba8

Algo update

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -93,6 +93,8 @@ def get_data():
93
  actual_b = df['upvote'][j] / df['votes'][j]
94
  df.at[i, 'score'] += 32 * (actual_a - expected_a)
95
  df.at[j, 'score'] += 32 * (actual_b - expected_b)
 
 
96
  df['score'] = round(df['score'])
97
  ## ELO SCORE
98
 
 
93
  actual_b = df['upvote'][j] / df['votes'][j]
94
  df.at[i, 'score'] += 32 * (actual_a - expected_a)
95
  df.at[j, 'score'] += 32 * (actual_b - expected_b)
96
+ if df['votes'][j] < 3:
97
+ df.at[j, 'score'] -= (3 - df['votes'][j]) * 5
98
  df['score'] = round(df['score'])
99
  ## ELO SCORE
100