File size: 994 Bytes
5f0f37c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
"""

20_evaluate_all.py

------------------

Executes all experimental evaluation pipelines and compiles master metrics.

"""

import sys, os, subprocess
from pathlib import Path

sys.stdout.reconfigure(encoding='utf-8')

SCRIPTS_DIR = Path(__file__).resolve().parent.parent

scripts = [
    "07_run_core_bm25.py",
    "08_run_uniform_bm25f.py",
    "09_tune_bm25f_ceiling.py",
    "10_diagnose_fragmentation.py",
    "13_field_shuffle.py",
    "14_run_agent.py",
    "15_agent_anchor_shuffle.py"
]

print("=" * 80)
print("EXECUTING ALL EVALUATION PIPELINES")
print("=" * 80)

for s in scripts:
    p = SCRIPTS_DIR / s
    print(f"\n>>> Running: {s}")
    res = subprocess.run([sys.executable, str(p)], capture_output=False)
    if res.returncode != 0:
        print(f"[ERROR] {s} exited with code {res.returncode}")
        sys.exit(res.returncode)

print("\n" + "=" * 80)
print("ALL EXPERIMENTAL EVALUATION PIPELINES COMPLETED SUCCESSFULLY")
print("=" * 80)