Hilbert-Operator-Intelligence / scripts /summarize_scaling.py
kiruluta's picture
Upload folder using huggingface_hub
45eaa9d verified
Raw History Blame Contribute Delete
384 Bytes
#!/usr/bin/env python
import json,sys,csv
from pathlib import Path
rows=[json.load(open(p)) for p in sys.argv[1:]]
if not rows: raise SystemExit("Pass result JSON files")
cols=list(rows[0]); out=Path("results/scaling_summary.csv"); out.parent.mkdir(exist_ok=True)
with out.open("w",newline="") as f:
w=csv.DictWriter(f,fieldnames=cols); w.writeheader(); w.writerows(rows)
print(out)