lorapop / code /work /pt_report.py
bryan7264's picture
Add files using upload-large-folder tool
36357ab verified
Raw History Blame Contribute Delete
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))