Migrating to 1.0
PreTab 1.0 is the first stable release. Because the previously published API (0.0.3) was
never declared stable, 1.0 takes a one-time, deliberate cleanup: intention-revealing class
names, non-overlapping parameters, and a smaller, sharper scope. This page maps the old
surface to the new one so you can upgrade in a single pass.
Important
1.0 contains breaking changes relative to 0.0.3. There are no compatibility shims. Update
the names and parameters below, then re-fit. Pin pretab<1 if you need the old behaviour
while you migrate.
Renamed transformers
The classes gained names that say what they compute.
Old name ( |
New name ( |
Notes |
|---|---|---|
|
|
Numeric-only, now stateful (learns edges in |
|
|
Sine and cosine harmonics for cyclic values. |
|
|
Disambiguated from the generic cubic B-spline. |
Removed transformers
Generic time-series utilities are out of scope for a representation framework.
Removed |
Replacement |
|---|---|
|
Use a dedicated time-series library. |
|
Use a dedicated time-series library. |
Note
Cyclic time structure is still first-class through PeriodicEncodingTransformer and the
"fourier" feature map. Only the generic lag and rolling-window helpers were removed.
Deprecated
Symbol |
Status |
Do this instead |
|---|---|---|
|
Deprecated, emits a |
Use the |
Parameter changes on Preprocessor
Placement is now two clean knobs
The overlapping selector / strategy / use_target arguments are gone. Placement is
controlled by exactly two parameters that validate strictly against each other.
Old |
New |
|---|---|
|
|
The valid combinations are fixed:
|
Allowed |
|---|---|
|
|
|
|
Warning
Mixing the two rows, for example target_aware=True with placement_strategy="quantile",
raises an error rather than silently guessing. placement_strategy defaults to "cart"
(paired with the target_aware=True default), so switching to target_aware=False also
means passing placement_strategy="uniform" or "quantile" explicitly.
See Resolution and placement for the full model.
Missing-value handling is explicit
The single handle_missing flag was replaced by three explicit parameters.
Old |
New |
|---|---|
|
|
Set an imputation strategy to None to disable it for that kind. See
Missing values.
Renamed optional extra
Old install |
New install |
|---|---|
|
|
The rename matches placement_strategy="lightgbm". The embeddings and all extras are
unchanged. See Installation.
Thin-plate spline parameters
The thin-plate spline moved to landmark-based terminology and is sized by rank, not by a
fixed output_dim.
Old |
New |
|---|---|
|
|
What is new in 1.0
Upgrading also unlocks capabilities that did not exist in 0.0.3.
New representations:
FourierFeatureTransformer,RandomFourierFeaturesTransformer, andNystroemFeaturesTransformer.A typed intermediate form:
RepresentationSpecplus per-output-column feature lineage.Leakage-safe supervision:
CrossFittedTransformer,RepresentationSearchCV, and aLeakageWarning. See Target awareness.Portable serialization:
to_spec/from_spec, a stablefingerprint_, and a frozen lifecycle. See Reproducibility.Presets and discovery:
Preprocessor(preset=...)andlist_representations(...).Central edge-case policy and output budgets on
Preprocessor.
Upgrade checklist
Rename the three renamed transformer classes.
Remove any use of
LagFeatureTransformer/RollingStatsTransformer.Replace
handle_missingwith the three explicit imputation parameters.Replace
use_target/selector/strategywithtarget_awareandplacement_strategy.Swap
ThinPlateSplineTransformer(output_dim=...)forn_components.Update
pretab[knots]topretab[lightgbm]in your dependencies.Re-fit and confirm the resolved layout with
get_feature_info(verbose=True).