Download scripts/verify_e2e.py from Simple7up/IOM: direct link, hf CLI and curl.
- Browser
- Download file 1.02 kB
-
https://huggingface.co/datasets/Simple7up/IOM/resolve/main/scripts/verify_e2e.py
- Command line
-
hf download hf://datasets/Simple7up/IOM/scripts/verify_e2e.py
-
curl -L -o verify_e2e.py https://huggingface.co/datasets/Simple7up/IOM/resolve/main/scripts/verify_e2e.py
1.02 kB
| #!/usr/bin/env python3 | |
| """Verificación de extremo a extremo (incluye capa opcional).""" | |
| from __future__ import annotations | |
| import subprocess | |
| import sys | |
| from pathlib import Path | |
| ROOT = Path(__file__).resolve().parents[1] | |
| STEPS = [ | |
| ("self_bootstrap", [sys.executable, "scripts/self_bootstrap.py", "--passes", "2"]), | |
| ("validate_spec", [sys.executable, "scripts/validate_spec.py"]), | |
| ("validate_shacl", [sys.executable, "scripts/validate_shacl.py"]), | |
| ("measure_invariance", [sys.executable, "scripts/measure_invariance.py"]), | |
| ("pi_hgat_t", [sys.executable, "experiments/optional/pi_hgat_t.py"]), | |
| ("baselines", [sys.executable, "experiments/optional/baselines.py"]), | |
| ] | |
| def main() -> int: | |
| for name, cmd in STEPS: | |
| print(f">>> {name}") | |
| r = subprocess.run(cmd, cwd=ROOT) | |
| if r.returncode != 0: | |
| print(f"FAIL: {name}", file=sys.stderr) | |
| return r.returncode | |
| print("OK: e2e completo") | |
| return 0 | |
| if __name__ == "__main__": | |
| sys.exit(main()) | |