Buckets:
| """Scaffold logbook directly.""" | |
| import json, sys | |
| sys.path.insert(0, r"X:\hf_challenge\_challenge_assets") | |
| # Call the scaffold function programmatically | |
| from trackio import logbook as lb | |
| from pathlib import Path | |
| title = "Simultaneous Confidence Bounds for Aggregated Effects via Exact Subset Optimization" | |
| orid = "1C2LrZ7SNL" | |
| claims = [ | |
| "Bootstrap calibration yields valid post-hoc inference for data-selected subsets.", | |
| "Bounds are tighter than classical methods that protect all linear contrasts.", | |
| ] | |
| proj = lb.create_logbook(title=f"Reproduction: {title}", space_id="amkkk/repro-simultaneous-confidence-bounds-for-aggregated-effects-via-exact-subset-optimization") | |
| paper_link = "[OpenReview paper](https://openreview.net/forum?id=1C2LrZ7SNL)" | |
| claim_specs = [] | |
| for i, claim in enumerate(claims, start=1): | |
| ct = f"Claim {i}: {claim}" | |
| slug = lb.ensure_page(proj, ct) | |
| claim_specs.append((ct, slug)) | |
| exec_slug = lb.ensure_page(proj, "Executive summary") | |
| concl_slug = lb.ensure_page(proj, "Conclusion") | |
| # Write index | |
| index_lines = [ | |
| f"# Reproduction: {title}", | |
| "", | |
| paper_link, | |
| "", | |
| lb.TOC_HEADING, | |
| "", | |
| lb.TOC_HEADER, | |
| lb.TOC_SEP, | |
| "| [00-scorecard](#/00-scorecard) |", | |
| f"| [Executive summary](#/{exec_slug}) |", | |
| ] | |
| for ct, slug in claim_specs: | |
| index_lines.append(f"| [{ct}](#/{slug}) |") | |
| index_lines += ["| [Methods / provenance](#/methods-provenance) |"] | |
| index_lines += [f"| [Conclusion](#/{concl_slug}) |", ""] | |
| (lb._pages_dir(proj) / "index.md").write_text("\n".join(index_lines), encoding="utf-8") | |
| # Add 00-scorecard page | |
| sc_slug = lb.ensure_page(proj, "00-scorecard") | |
| # Metadata | |
| metadata = lb.read_metadata(proj) | |
| metadata["tags"] = ["icml2026-repro", "paper-1C2LrZ7SNL"] | |
| metadata["space_id"] = "amkkk/repro-simultaneous-confidence-bounds-for-aggregated-effects-via-exact-subset-optimization" | |
| lb.write_metadata(proj, metadata) | |
| # Share some known values for the next script | |
| info = { | |
| "proj": str(proj), | |
| "exec_slug": exec_slug, | |
| "concl_slug": concl_slug, | |
| "sc_slug": sc_slug, | |
| "claim1_slug": claim_specs[0][1], | |
| "claim2_slug": claim_specs[1][1], | |
| } | |
| print(json.dumps(info)) | |
Xet Storage Details
- Size:
- 2.16 kB
- Xet hash:
- 2e523051f2a5c73dae67d37c6695848a6c56709fea7183fa061579b8c6398402
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.