junidude14 commited on
Commit
59ae6da
·
verified ·
1 Parent(s): dea2577

Archive 4 checkpoints (1-4)

Browse files
paper-releases/pbisc-diffusion/updates/20261002T002920Z-deck-extra-metrics-scsemi-prep/diffusion/dataset/server_1/model8/presentations/2026-09-30--paper-summary--r00/figures/sec07_rank_sweep.pdf ADDED
Binary file (52.1 kB). View file
 
paper-releases/pbisc-diffusion/updates/20261002T002920Z-deck-extra-metrics-scsemi-prep/diffusion/dataset/server_1/model8/presentations/2026-09-30--paper-summary--r00/figures/sec07_rank_sweep.png ADDED

Git LFS Details

  • SHA256: 355d77f9a5a365fd3bcaeb036c6158eca0eaf415b85d3d614478ffb7e384fb4c
  • Pointer size: 131 Bytes
  • Size of remote file: 290 kB
paper-releases/pbisc-diffusion/updates/20261002T002920Z-deck-extra-metrics-scsemi-prep/diffusion/dataset/server_1/model8/presentations/2026-09-30--paper-summary--r00/figures/sec08_pairs_realism.pdf ADDED
Binary file (44.5 kB). View file
 
paper-releases/pbisc-diffusion/updates/20261002T002920Z-deck-extra-metrics-scsemi-prep/diffusion/dataset/server_1/model8/presentations/2026-09-30--paper-summary--r00/tools/sync_sec09_text.py ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Copy generated slide text into data/slides_spec.json.
3
+
4
+ sec09_paired_validation.py regenerates titles, keywords and footnotes from the
5
+ scores (the scSemiProfiler verdicts can change when the missing draws arrive).
6
+ Run after that script and before generate_deck.py:
7
+
8
+ python3 tools/sec09_paired_validation.py
9
+ python3 tools/sync_sec09_text.py
10
+ python3 generate_deck.py
11
+
12
+ Two kinds of spec slides are synced:
13
+ - "sec09_index": i -> slide i of data/sec09_slide_text.json (section 9 main slides)
14
+ - "text_source": {"file": "data/<x>_slide_text.json", "index": i}
15
+ -> slide i of that file (added 2026-10-02: data/sec09_extra_slide_text.json from
16
+ tools/sec09_extra_metrics.py, data/sec07_rank_sweep_slide_text.json from
17
+ tools/sec07_rank_sweep.py)
18
+
19
+ Titles, keywords, footnote_full, numbers and (from footnote_short) the on-slide footnote
20
+ are overwritten; if footnote_full changed, the script lists the slide so the
21
+ short copy can be checked by hand (the deck build fails if it exceeds 2 lines).
22
+ """
23
+ import json
24
+ import sys
25
+ from pathlib import Path
26
+
27
+ DECK = Path(__file__).resolve().parents[1]
28
+ SPEC = Path(sys.argv[1]) if len(sys.argv) > 1 else DECK / "data" / "slides_spec.json"
29
+ SRC = DECK / "data" / "sec09_slide_text.json"
30
+
31
+
32
+ def copy_text(s: dict, g: dict, review: list) -> None:
33
+ figs = [str(Path(f).relative_to(DECK)) for f in g["figures"]]
34
+ have = [str(Path(f).relative_to(DECK)) if Path(f).is_absolute() else f for f in s["figures"]]
35
+ if figs != have:
36
+ raise SystemExit(f"figure mismatch for '{g['title']}': {figs} vs {s['figures']}")
37
+ s["figures"] = figs
38
+ s["title"] = g["title"]
39
+ s["keywords"] = g["keywords"]
40
+ if s.get("footnote_full", s.get("footnote")) != g["footnote"]:
41
+ review.append(g["title"])
42
+ s["footnote_full"] = g["footnote"]
43
+ if g.get("footnote_short"):
44
+ s["footnote"] = g["footnote_short"]
45
+ s["numbers"] = g["numbers"] # quoted numbers + sources, kept in step with the slide text (2026-10-01)
46
+
47
+
48
+ def main() -> None:
49
+ spec = json.loads(SPEC.read_text())
50
+ src = json.loads(SRC.read_text())["slides"]
51
+ review = []
52
+ n = 0
53
+ other: dict = {}
54
+ for s in spec["slides"]:
55
+ i = s.get("sec09_index")
56
+ if i is not None:
57
+ copy_text(s, src[i], review)
58
+ n += 1
59
+ continue
60
+ ts = s.get("text_source")
61
+ if ts:
62
+ f = DECK / ts["file"]
63
+ g = json.loads(f.read_text())["slides"]
64
+ copy_text(s, g[int(ts["index"])], review)
65
+ other.setdefault(ts["file"], set()).add(int(ts["index"]))
66
+ if n != len(src):
67
+ raise SystemExit(f"spec has {n} sec09 slides, source has {len(src)}")
68
+ for f, idx in other.items():
69
+ m = len(json.loads((DECK / f).read_text())["slides"])
70
+ if idx != set(range(m)):
71
+ raise SystemExit(f"spec uses slides {sorted(idx)} of {f}, which has {m}")
72
+ SPEC.write_text(json.dumps(spec, indent=2, ensure_ascii=False) + "\n")
73
+ print(f"synced {n} section 9 slides and " + ", ".join(f"{len(v)} from {k}" for k, v in other.items()))
74
+ for t in review:
75
+ print(f"REVIEW short footnote (source footnote changed): {t}")
76
+
77
+
78
+ if __name__ == "__main__":
79
+ main()