Skip to main content

report

report

selection_fragility.report — the one-screen report.

Prose lives HERE, never in the returned data structure (prior art: sensemakr puts interpretation only in print(); deepchecks separates a Check that measures from a Condition the user writes at their own call site). No “fragile”/“screen” verdict language anywhere – that whole design was retired, not reworded.

Functions

Name Description
report One-screen summary of a LossPanel: VERDICT (identification), LEADERBOARD (mean loss / in-MCS /

report

report.report(panel, alpha=0.1, full=False, seed=0)

One-screen summary of a LossPanel: VERDICT (identification), LEADERBOARD (mean loss / in-MCS / periods won), RESOLUTION (observed edge vs MDE, MCB bound), PIVOT (k*, named periods or largest contributor, a Proposition 2.2 certificate computed on the equal-weights decision for the printed champion, concentration_share, pivot_agreement). full=True is accepted for forward compatibility with a future expanded view; the default view is intentionally the compact one.

First parameter is named panel, not L: every other public function names its first parameter L and accepts a raw {model: array} dict OR a LossPanel; report() specifically REQUIRES a LossPanel (it reads .weights/.labels directly), so panel names that requirement rather than implying a raw dict would also work. Kept as panel rather than renamed to avoid a breaking change to the v1.0.0 API for anyone calling report(panel=...) by keyword.

COST SCALES STEEPLY WITH MODEL COUNT (K). The underlying arch.bootstrap.MCS elimination is the dominant cost; measured directly on this package’s own report(): ~1s at K=100, ~3s at K=200, potentially minutes at K=500+. LossPanel.from_losses/from_forecasts already warn once, at construction time, when K exceeds ~100 – see that warning for the up-to-date measured numbers rather than trusting this docstring to stay current.

COST ALSO SCALES WITH T for a panel that reaches a RESOLVED/identified verdict and contains at least one decisively-separated model pair (an everyday shape, not a contrived edge case): report()’s PIVOT section then runs pivot_agreement’s 200-subsample loop, each subsample calling decision_breakdown -> breakdown_number’s O(T) pure-Python greedy loop, once per opponent. Measured directly: at fixed K=20 (10 competitive models + 10 with an ordinary +4.0 mean offset), report() cost is non-monotonic/threshold-like as the panel crosses into “resolved” – T=15000 (not yet resolved): 0.43s; T=20000 (now resolved): 10.8-16.1s; T=50000: 27-29s – with ZERO warning at any point (K=20 is well under the K>100 threshold above). This is precisely the regime a user hits once they have enough data for a real answer. The K-only cost claim above remains accurate for its own benchmark (a panel NOT yet resolved, or with no decisive pair); it is not a bound on cost for a resolved panel at large T.

seed controls the bootstrap-based MCS that VERDICT/fragility_read run, so a caller can see how seed-sensitive their one-screen verdict is on a borderline panel (see mcs.py’s README “Adversarial use” section for a quantified example: identification can swing ~37-42 percentage points across seed=1..300 on one borderline panel). Pass a few different seeds yourself near a borderline alpha if this matters for your use case.