onekq commited on
Commit
64830f2
1 Parent(s): ae26bfe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ df['Scenario'] = df['Scenario'].astype(str)
16
  def estimate_pass_at_k(num_samples, num_correct, k):
17
  def estimator(n, c, k):
18
  if n - c < k:
19
- return 0
20
  return 1.0 - np.prod(1.0 - k / np.arange(n - c + 1, n + 1))
21
 
22
  return np.array([estimator(n, c, k) for n, c in zip(num_samples, num_correct)])
 
16
  def estimate_pass_at_k(num_samples, num_correct, k):
17
  def estimator(n, c, k):
18
  if n - c < k:
19
+ return 1.0
20
  return 1.0 - np.prod(1.0 - k / np.arange(n - c + 1, n + 1))
21
 
22
  return np.array([estimator(n, c, k) for n, c in zip(num_samples, num_correct)])