Load train.jsonl only (not all data files).
()
| 17 | |
| 18 | |
| 19 | def _load_training_data() -> list[dict]: |
| 20 | """Load train.jsonl only (not all data files).""" |
| 21 | data_dir = Path(__file__).parent.parent / "bench" / "data" |
| 22 | train_path = data_dir / "train.jsonl" |
| 23 | cases = [] |
| 24 | with open(train_path, "r", encoding="utf-8") as f: |
| 25 | for line in f: |
| 26 | line = line.strip() |
| 27 | if line: |
| 28 | cases.append(json.loads(line)) |
| 29 | return cases |
| 30 | |
| 31 | |
| 32 | def _extract_keyword_free_features(prompt: str, model: ScriptAgnosticClassifier) -> dict[str, float]: |
no test coverage detected