You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _src/docs/changelog.md
+77-34Lines changed: 77 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,6 +115,18 @@ hide_title: true
115
115
116
116
# 0.22.0 (2026-07-15)
117
117
118
+
## Breaking Changes
119
+
120
+
-**IPW fit metadata renames its training-weight keys.**`ipw(...)["model"]` now
121
+
stores training design weights under the canonical `training_sample_weights` /
122
+
`training_target_weights` keys used by `predict_weights()`; the old
123
+
`fit_sample_weights` / `fit_target_weights` keys are no longer emitted.
124
+
**Migration:** downstream code that reads the model dict directly should switch
125
+
to the `training_*` names.
126
+
-**Rake model metadata no longer emits the IPW-style `perf` placeholder** with a
127
+
synthetic NaN deviance-explained value.
128
+
**Migration:** use rake-specific metadata such as `iterations` and `converged`.
129
+
118
130
## New Features
119
131
120
132
-`BalanceDFOutcomes.relative_response_rates()` now accepts an explicit `relative_to={"self", "target"}` denominator selector while preserving the existing `target=` API.
@@ -124,13 +136,9 @@ hide_title: true
124
136
125
137
## Code Quality & Refactoring
126
138
127
-
-**Breaking:** IPW fit metadata now stores training design weights under the
128
-
canonical `training_sample_weights` / `training_target_weights` keys used by
129
-
`predict_weights()`. The old `fit_sample_weights` / `fit_target_weights`
130
-
model-dict keys are no longer emitted; downstream code that reads
131
-
`ipw(...)["model"]` directly should switch to the `training_*` names. Stored
132
-
fit matrices are copied before being persisted so sample and target caches
133
-
cannot share slice views with the fit-time design matrix.
139
+
- IPW stored fit matrices are copied before being persisted so sample and target
140
+
caches cannot share slice views with the fit-time design matrix. (The
141
+
accompanying `training_*` metadata key rename is listed under Breaking Changes.)
134
142
- ASMD input validation now rejects duplicate DataFrame column labels before
135
143
computing statistics, making direct `asmd(...)` calls match the unique-column
136
144
invariant enforced by SampleFrame construction.
@@ -141,9 +149,6 @@ hide_title: true
141
149
- Rake now uses the shared weighting-method input validator already used by
142
150
IPW and poststratify, so DataFrame/weight type, length, and index checks are
143
151
reported consistently across all three methods.
144
-
-**Breaking:** Rake model metadata no longer emits the IPW-style `perf` placeholder with a
145
-
synthetic NaN deviance-explained value; consumers should use rake-specific
146
-
metadata such as `iterations` and `converged`.
147
152
- Transfer-scoring guards for rake and poststratify now reject `functools.partial(...)` wrappers around known data-dependent transformation helpers (`quantize` / `fct_lump`), closing a replay-safety gap where partial-wrapped helpers could bypass direct callable checks.
148
153
- Rake now uses the shared adjustment warning helper when fit metadata is stored with `transformations="default"`, keeping transfer-scoring guidance centralized with the corresponding replay-safety guard.
149
154
@@ -166,6 +171,15 @@ hide_title: true
166
171
167
172
# 0.21.0 (2026-06-02)
168
173
174
+
## Breaking Changes
175
+
176
+
-**Poststratify models pickled before 0.21.0 cannot be used for transfer
177
+
scoring.** They lack the `transformations_origin` metadata that
178
+
`predict_weights(data=...)` needs to replay cell ratios safely. In-place
179
+
`predict_weights()` continues to work.
180
+
**Migration:** re-fit the model on the current version before transfer scoring.
181
+
See the poststratify entry under New Features for details.
0 commit comments