Skip to content

O4c: fair CIP posterior export via systematic resampling, final group unique (port from rift_O4d) - #218

Open
oshaughnessy-junior wants to merge 3 commits into
oshaughn:rift_O4cfrom
oshaughnessy-junior:claude/o4c-cip-fair-export
Open

oshaughnessy-junior wants to merge 3 commits into
oshaughn:rift_O4cfrom
oshaughnessy-junior:claude/o4c-cip-fair-export

Conversation

@oshaughnessy-junior

@oshaughnessy-junior oshaughnessy-junior commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Ports the fair CIP posterior export from rift_O4d: oshaughnessy-junior#56 (bce0862, 5e802f3, b8865fc, 4633f83).

rift_O4c exports with weighted np.random.choice(replace=False) and keeps the first N, which biases the export toward the proposal. On a GW150914 fixed-archive refit, the q median moved from 0.852 to 0.839.

Tests on ldas-grid with the IGWN CVMFS python, no cupy:

  • test_cip_pipeline.py, test_rf_transverse_spin.py, test_geometric4.py: 116 passed. The new writer test fails on the unpatched code.
  • DAG build from a GW150914 arg list: the flag appears only in the final CIP_3.sub.
  • GW150914 refits match rift_O4d fc532d0 seed for seed. The flagged run delivers 5188 distinct rows (the bound).

🤖 Generated with Claude Code

@oshaughnessy-junior
oshaughnessy-junior deployed to private-review-dispatch-rift-upstream October 12, 2026 11:54 — with GitHub Actions Active
@oshaughnessy-junior
oshaughnessy-junior deployed to private-review-dispatch-rift-upstream October 12, 2026 12:18 — with GitHub Actions Active
@oshaughnessy-junior
oshaughnessy-junior had a problem deploying to private-review-dispatch-rift-upstream October 12, 2026 12:18 — with GitHub Actions Error
oshaughn and others added 3 commits October 12, 2026 05:18
…ift_O4d)

Port of oshaughnessy-junior/research-projects-RIT rift_O4d bce0862,
5e802f3, b8865fc (junior PR #56), CIP and cip_pipeline parts.
Weighted np.random.choice(replace=False) is successive sampling, so the
first-N truncation biased the export toward the proposal. Systematic
resampling on the weight CDF has exact expected counts at any N. Adds
--posterior-unique-draw and the +annotation_export.dat sidecar. The
pseudo_pipe hunk follows in the next commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ports the pseudo_pipe hunk of rift_O4d bce0862 (oshaughnessy-junior
#56): the final args_cip_list.txt line gets --posterior-unique-draw
(skipped on the AMR path; a final G line is left alone), and lines are
written newline-terminated. Not ported, because rift_O4c lacks what they
guard: the --internal-ile-deduplicate-grid exclusion and the MultiApprox
CIP_terminal strip (rift_O4d ca30121, oshaughnessy-junior #218).
Adds a test that runs the writer block.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…info skip

Review [P2] on PR #56: the equal-weights exactness test evaluated
np.longdouble(10.0)**400 unconditionally; on platforms where longdouble
has only float64 range that is inf, unique_draw_bound correctly raises,
and the test fails on platforms RIFT supports.  The beyond-DBL_MAX
assertion now lives in the extended-precision test after its finfo
skip; the np.ones assertions stay unconditional.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
(cherry picked from commit 4633f83)
@oshaughnessy-junior
oshaughnessy-junior force-pushed the claude/o4c-cip-fair-export branch from f45ec8e to 0d2aaca Compare October 12, 2026 12:18
@oshaughnessy-junior oshaughnessy-junior changed the title O4c: fair CIP posterior export via systematic resampling (port from rift_O4d) O4c: fair CIP posterior export via systematic resampling, final group unique (port from rift_O4d) Oct 12, 2026
@oshaughnessy-junior
oshaughnessy-junior deployed to private-review-dispatch-rift-upstream October 12, 2026 12:19 — with GitHub Actions Active
@oshaughnessy-junior
oshaughnessy-junior marked this pull request as ready for review October 12, 2026 12:23
@oshaughnessy-junior
oshaughnessy-junior deployed to private-review-dispatch-rift-upstream October 12, 2026 12:23 — with GitHub Actions Active

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Independent automated review completed at the recorded exact commit. Detailed findings were withheld from public output by the private-context egress policy and require private human declassification.

This branch was successfully deployed

1 active deployment
private-review-dispatch-rift-upstream — 0d2aaca7 Deployed Oct 12, 2026 by oshaughnessy-junior via Dispatch exact upstream RIFT PR generation #203
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants