dustalov commited on
Commit
ef15204
1 Parent(s): 35f4425

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -50,11 +50,13 @@ def aggregate(wins: npt.NDArray[np.int64], ties: npt.NDArray[np.int64],
50
  iterations += 1
51
 
52
  v_numerator = np.sum(
53
- ties * (pi[:, None] + pi) / (pi[:, None] + pi + 2 * v * np.sqrt(pi[:, None] * pi))
 
54
  ) / 2
55
 
56
  v_denominator = np.sum(
57
- wins * 2 * np.sqrt(pi[:, None] * pi) / (pi[:, None] + pi + 2 * v * np.sqrt(pi[:, None] * pi))
 
58
  )
59
 
60
  v = v_numerator / v_denominator
 
50
  iterations += 1
51
 
52
  v_numerator = np.sum(
53
+ ties * (pi[:, np.newaxis] + pi) /
54
+ (pi[:, np.newaxis] + pi + 2 * v * np.sqrt(pi[:, np.newaxis] * pi))
55
  ) / 2
56
 
57
  v_denominator = np.sum(
58
+ wins * 2 * np.sqrt(pi[:, np.newaxis] * pi) /
59
+ (pi[:, np.newaxis] + pi + 2 * v * np.sqrt(pi[:, np.newaxis] * pi))
60
  )
61
 
62
  v = v_numerator / v_denominator