Beyond-Chunking / scripts /analysis /20_evaluate_all.py
RaiyanKhaan's picture
Upload complete Beyond-Chunking reproducibility package and benchmark datasets
5f0f37c verified
Raw History Blame Contribute Delete
994 Bytes
"""
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)