Download code/work/split_compare.py from bryan7264/lorapop: direct link, hf CLI and curl.
- Browser
- Download file 637 Bytes
-
https://huggingface.co/datasets/bryan7264/lorapop/resolve/main/code/work/split_compare.py
- Command line
-
hf download hf://datasets/bryan7264/lorapop/code/work/split_compare.py
-
curl -L -o split_compare.py https://huggingface.co/datasets/bryan7264/lorapop/resolve/main/code/work/split_compare.py
637 Bytes
| # MIT License, Bryan Cheng, 2026. | |
| """Overlap of the discovery split D between the primary scan and the family-threshold sensitivity scans, and naive | |
| lambda_GC on D (from the per-trait summaries if present).""" | |
| import json | |
| P0 = json.load(open("results/scans/qwen05_rt/population.json")) | |
| for d in ("sens_fam2", "sens_fam5"): | |
| P = json.load(open(f"results/scans/{d}/population.json")) | |
| assert P["names"] == P0["names"] if "names" in P else True | |
| s0, s1 = P0["split"], P["split"] | |
| same = sum(a == b for a, b in zip(s0, s1)) | |
| print(d, "n", len(s0), "same half", same, "share", round(same / len(s0), 3), "keys", sorted(P)[:8]) | |