Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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=
|
| 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 |
|