Commit 012e4de
feat: v0.9.16 — breadth expansion (new-methods pass across 15 sub-packages)
Ships 30+ new modules across 15 sub-packages plus 7 dedicated test
files, bumping StatsPAI's coverage of the applied-causal-inference
landscape closer to v1.0. This is a breadth release in the spirit
of the earlier v1.0 upgrade pass (see memory project_v1_upgrade),
not an architectural change.
Spec: docs/superpowers/specs/2026-04-20-v0916-breadth-expansion.md
New estimators and analyses by area
Causal forests: multi_arm_forest, iv_forest,
survival/causal_forest (Cui-Kosorok 2023)
Causal discovery: FCI with latent confounders (Zhang 2008),
ICP / nonlinear_icp (Peters-Bühlmann-Meinshausen)
DAG tooling: do_calculus, identification, counterfactual,
swig, llm_dag
DTR: q_learning, a_learning, snmm (Robins 2004)
TMLE: ltmle (van der Laan-Gruber 2012)
Proximal: negative_controls (Lipsitch / Miao-Shi-Tchetgen),
pci_regression (Cui-Tchetgen 2020)
Interference: network_exposure (Aronow-Samii 2017),
peer_effects
Dose-response: vcnet + scigan (Nie-Brunskill-Wager 2021)
Matching: genmatch (Diamond-Sekhon 2013)
Sensitivity: rosenbaum_bounds (Rosenbaum 2002)
Spatial: spatial_did, spatial_iv (Kelejian-Prucha 1998)
Policy learning: ope direct / IPS / SNIPS / doubly-robust
Time series: its (interrupted time series)
Censoring / survival IPCW: ipcw (Robins-Finkelstein 2000)
Target-trial emulation: protocol, emulate, ccw, diagnostics
g-formula: ice (iterated conditional expectation)
Transport: identify, generalize, weighting
Bounds: balke_pearl (Balke-Pearl 1997)
Mediation: four_way_decomposition (VanderWeele 2014)
Neural causal: cevae (Louizos et al. 2017),
gnn_causal
Many-weak-IV: iv/many_weak
OPE package: new top-level ope/
Bayes DID: bayes_did gains cohort= parameter and
dedicated BayesianDIDResult type
New tests (7 files)
test_target_trial.py, test_dag_scm.py, test_icp.py,
test_ope_cevae.py, test_transport.py, test_gformula_ice.py,
test_bayes_mte_bivariate_normal.py
Test hardening gap (declared up front): 20+ of the 30+ modules
ship without a dedicated test file. The import chain is healthy
(collection: 2373 / 2381 pass; 559 passed in the focused regression
over affected sub-packages), but per-module correctness tests are
deferred to follow-up commits per spec §4.4 (P0: ltmle, fci;
P1: dtr trio, negative_controls, network_exposure).
Version
0.9.15 → 0.9.16 in pyproject.toml and src/statspai/__init__.py.
Regression evidence
pytest --collect-only -q: 2373 collected, 8 deselected in 11s
pytest on affected packages: 559 passed, 3 skipped, 0 failed in 339s
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 6d59fe8 commit 012e4de
77 files changed
Lines changed: 9835 additions & 22 deletions
File tree
- docs/superpowers/specs
- src/statspai
- bayes
- bounds
- causal_discovery
- causal
- censoring
- dag
- diagnostics
- dose_response
- dtr
- gformula
- interference
- iv
- matching
- mediation
- neural_causal
- ope
- policy_learning
- proximal
- spatial
- survival
- target_trial
- timeseries
- tmle
- transport
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 190 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
168 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
| |||
174 | 175 | | |
175 | 176 | | |
176 | 177 | | |
177 | | - | |
| 178 | + | |
178 | 179 | | |
179 | 180 | | |
180 | 181 | | |
| |||
185 | 186 | | |
186 | 187 | | |
187 | 188 | | |
| 189 | + | |
188 | 190 | | |
189 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
190 | 207 | | |
191 | 208 | | |
192 | 209 | | |
| |||
0 commit comments