Jayant-Kernel commited on
fix: count skipped rows toward progress interval
Browse files
scripts/generate_distractors.py
CHANGED
|
@@ -87,11 +87,11 @@ def main() -> None:
|
|
| 87 |
iteration_count = 0
|
| 88 |
|
| 89 |
for i, row in enumerate(level1_rows):
|
|
|
|
|
|
|
| 90 |
if row["id"] in existing:
|
| 91 |
continue
|
| 92 |
|
| 93 |
-
iteration_count += 1
|
| 94 |
-
|
| 95 |
try:
|
| 96 |
distractors = _generate_distractors(client, row["question"], row["ground_truth"])
|
| 97 |
except Exception as e:
|
|
|
|
| 87 |
iteration_count = 0
|
| 88 |
|
| 89 |
for i, row in enumerate(level1_rows):
|
| 90 |
+
iteration_count += 1
|
| 91 |
+
|
| 92 |
if row["id"] in existing:
|
| 93 |
continue
|
| 94 |
|
|
|
|
|
|
|
| 95 |
try:
|
| 96 |
distractors = _generate_distractors(client, row["question"], row["ground_truth"])
|
| 97 |
except Exception as e:
|