Download scripts/analysis/20_evaluate_all.py from RaiyanKhaan/Beyond-Chunking: direct link, hf CLI and curl.
- Browser
- Download file 994 Bytes
-
https://huggingface.co/datasets/RaiyanKhaan/Beyond-Chunking/resolve/main/scripts/analysis/20_evaluate_all.py
- Command line
-
hf download hf://datasets/RaiyanKhaan/Beyond-Chunking/scripts/analysis/20_evaluate_all.py
-
curl -L -o 20_evaluate_all.py https://huggingface.co/datasets/RaiyanKhaan/Beyond-Chunking/resolve/main/scripts/analysis/20_evaluate_all.py
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) | |