Shuu12121 commited on
Commit
e1b2b43
·
verified ·
1 Parent(s): 00bd88d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,7 +23,7 @@ def get_query_and_candidates(seed: int = 42):
23
 
24
  # 正例 + ランダム負例(正例を除く)
25
  candidate_pool = [example for i, example in enumerate(dataset) if i != idx]
26
- negatives = random.sample(candidate_pool, k=9) # 9件の負例
27
  candidates = [correct_code] + [neg["code"] for neg in negatives]
28
  random.shuffle(candidates)
29
 
 
23
 
24
  # 正例 + ランダム負例(正例を除く)
25
  candidate_pool = [example for i, example in enumerate(dataset) if i != idx]
26
+ negatives = random.sample(candidate_pool, k=99) # 9件の負例
27
  candidates = [correct_code] + [neg["code"] for neg in negatives]
28
  random.shuffle(candidates)
29