Repository navigation
gap_prevalence: coverage if closed over all estates together (Part of #5865) - #7136
Merged
Merged
Conversation
…me-free gap-set shapes (Part of #5865) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
gap_prevalence(#5865) gave "coverage if closed" only per scope; the All-estates ranking, the headline table, had none. This adds it for both scopes together.rank()storesshapes: the programs that still have a gap, grouped by the exact (scrubbed, name-free) gap set, with per-era counts. Present only when non-empty.combined_coverage()re-ranks over both scopes' shapes: top-N of the all-estates order and the greedy close-next order. Programs add across scopes (estate labels never overlap). Result on the committed data: 134 / 169 whole today, 143 after the top gap, 163 (96.5%) after ten greedy steps, all upper bounds (refusing gaps).shapesadded to both summaries; regenerated from the same survey runs, no other summary field moved).Burned estates only for case work; census is aggregates under opaque labels, shapes carry only
scrub_keyvocabulary.Class / Sibling gaps
Class: a coverage-if-closed figure that existed per scope but not for the all-estates ranking, because the committed summaries lacked the per-program gap sets (name-free
shapesfix that for every scope combination). Members handled here: combined top-N, combined greedy order, combined headline. Sibling gaps: a combined needs-together tail (not here: it needs per-estate counts thatshapesdoes not keep; small follow-up if wanted). No burned program needs any new gap. Validating the upper bounds against actual translation of the census programs is the remaining part of the item's premise and is not measurable here.Checklist: done [c:19a53848]
Tests
tests/tools/test_gap_prevalence.py: shapes account for every program with a gap; combined whole equals per-scope sums for one closed set; committed summaries combine and render (3 headlines).🤖 Generated with Claude Code