Download code/work/pt_report.py from bryan7264/lorapop: direct link, hf CLI and curl.
- Browser
- Download file 535 Bytes
-
https://huggingface.co/datasets/bryan7264/lorapop/resolve/main/code/work/pt_report.py
- Command line
-
hf download hf://datasets/bryan7264/lorapop/code/work/pt_report.py
-
curl -L -o pt_report.py https://huggingface.co/datasets/bryan7264/lorapop/resolve/main/code/work/pt_report.py
535 Bytes
| # MIT License, Bryan Cheng, 2026. | |
| import json | |
| P = json.load(open("results/scans/qwen05/primary_traits.json")) | |
| rel = P["reliability"]; prim = set(P["primary"]) | |
| print("traits", len(rel), "primary", len(prim), "n", P["n"]) | |
| for t, r in sorted(rel.items(), key=lambda x: (x[1] is None, x[1])): | |
| if t not in prim: | |
| print("excluded", t, None if r is None else round(r, 3)) | |
| rs = sorted(r for t, r in rel.items() if t in prim) | |
| print("primary reliability min/median/max", round(rs[0], 3), round(rs[len(rs) // 2], 3), round(rs[-1], 3)) | |