Skip to content

v2.1.1

Latest

Choose a tag to compare

@github-actions github-actions released this 05 Dec 14:33
bf7f400

DeepTab 2.1.1

DeepTab 2.1.1 fixes issues in preprocessing, model training, evaluation, and saved model loading. It also improves compatibility with PreTab 1.1 and updates the optional MLflow dependency for SQLAlchemy 2.1.

Highlights

  • Hyperparameter searches now use one validation split per search. This makes trial scores comparable when DeepTab splits the data automatically. The patch also fixes cases where GridSearchCV silently used default settings. (@jorisstrakeljahn #632, @ChrisW09 #490, #514, #614)
  • Model loading restores the estimator class and distribution stored in the artifact. Saving or continuing a fitted model uses its fitted preprocessor, even after you change preprocessing settings for the next fit. (@ChrisW09 #562, #568)
  • Classification and distributional metrics were corrected. Log loss now handles evaluation sets that omit a class, and log-normal CRPS uses the formula for a log-normal predictive distribution. (@ChrisW09 #494, #518, #524)
  • Dirichlet LSS models can now fit with default target-aware preprocessing. Training still uses the full target vector. (@fbaeumer #635)

Upgrade notes

  • Python and PreTab. DeepTab supports Python 3.11 to 3.13 and accepts pretab>=1.0,<2.0. Upgrading to PreTab 1.1 is optional.
  • Refitting with PreTab 1.1 can change results. PreTab 1.1 ranks CART splits differently, which can move the bin boundaries used by DeepTab's default piecewise-linear encoding. The default encoding keeps the same width, and saved models retain their fitted preprocessing. Record the PreTab version when comparing results across training runs. (PreTab 1.1 release notes)
  • MLflow 3.9 or later is required by the mlflow, tracking, and all extras, with an upper bound of <4.0. Update older MLflow pins when using these extras. MLflow remains optional for a core install. (@jorisstrakeljahn #625)
  • Retrain affected Mambular and MambAttention models. Artifacts saved with DeepTab 2.1.0 or earlier need retraining if they used shuffle_embeddings=True with a CLS token or external embeddings. The stored shuffle permutation is too short for the corrected token count. (Migration guide, @ChrisW09 #484)

What's Changed

Input handling and preprocessing

  • Fixed pandas string columns with missing values. Validation and prediction now use the fitted imputer even when an entire input column is missing, including in single-row requests. (@ChrisW09 #496, #511)
  • Fixed column routing for non-string DataFrame labels and for DataFrames passed to a model trained with a positional schema. When training used named columns, unnamed validation inputs now raise an error before a fitted model is replaced. (@ChrisW09 #512, @xillig #623, @mkumar73 #636)
  • Fixed target-aware preprocessing for vector targets, including Dirichlet LSS with the default piecewise-linear encoding. (@fbaeumer #635)

Training and estimator configuration

  • Kept classifier sample weights aligned with their rows when DeepTab creates the validation split. HPO trials share one validation split, and ResNet's normalization setting is searched over True and False. (@ChrisW09 #492, #560, @jorisstrakeljahn #632)
  • Applied config changes made through set_params() to subsequent fits. When another config was supplied and model_config was omitted, model_config__* keys now tune the default model config. (@ChrisW09 #490, #514, #614)
  • Fixed contrastive pretraining so anchors stay aligned with their pairs and batches too small to form pairs are skipped. The default training loader drops a trailing single-row batch when there is at least one full batch and drop_last is unspecified. (@ChrisW09 #528, #530, #578)
  • Accepted NumPy integer seeds and fixed optimizer construction for optimizers that lack a weight_decay argument. (@ChrisW09 #520, #536)

Prediction, persistence, and continued training

  • Converted float16 and bfloat16 prediction tensors to float32 before NumPy conversion. Regressor score() now uses the in-memory weights, and build_model() marks a rebuilt estimator as unfitted. (@ChrisW09 #504, #540, #542)
  • Used the fitted preprocessor when saving or continuing training. The loader restores the saved estimator type, and LSS save() now returns the artifact path. (@ChrisW09 #548, #562, #568)
  • Made distribution families picklable and fixed comparison of array-valued distribution options during continued training. (@ChrisW09 #558, #564)

Metrics and distributions

  • Matched evaluation labels to probability columns for string and non-consecutive integer labels. Fixed log loss for validation and test sets that omit a class. (@ChrisW09 #494, #518)
  • Corrected negative binomial deviance, Tweedie deviance at zero, log-normal CRPS, and Student-t loss for degrees of freedom below two. Fixed negative log-likelihood for column-vector targets. (@ChrisW09 #506, #509, #522, #524, #526)
  • Validated count, Tweedie, and beta targets before training starts. The error for an unknown distribution family now points to get_distribution(). (@ChrisW09 #488, @jorisstrakeljahn #628)

Model architectures

  • Fixed recurrent and convolutional pooling. Sequence lengths now include CLS and external embedding tokens where present, which fixes token shuffling and learned flattening. (@ChrisW09 #482, #484)
  • Fixed random-sign initialization in BatchEnsemble layers and made PLR embeddings use the configured frequencies_init_scale. Removed debug prints from TabM and TabR. (@ChrisW09 #498, #502, #516)
  • Fixed NDTF for single-feature inputs and added validation for its depth range. ResNet now follows layer_sizes across different block counts. Experimental Trompt works on tables with only categorical features or external embeddings. (@ChrisW09 #532, #534, #538, @xillig #622)

Experiment tracking, documentation, and CI

  • Applied ObservabilityConfig to LSS training, fixed lifecycle logging for paths and NumPy values, and honored enable_model_summary=False. Setting mlflow_log_model=False now prevents checkpoint uploads while keeping local checkpoints and other tracking. (@ChrisW09 #486, #500, #544, #546)
  • Corrected the quickstart and preprocessing examples, including numerical_method="none" for disabling numeric transformations and "bspline" for B-splines. (@ChrisW09 #550, #570, #572, #586)
  • Updated examples for config placement, config JSON round-trips, nested set_params() keys, v1 imports, and data module migration. (@ChrisW09 #552, #576, #584, #608, #612)
  • Clarified training defaults, checkpoint naming, loss selection, LSS metric examples, contrastive pretraining support, and Apple Silicon setup. (@ChrisW09 #554, #566, #582, #588, #590, #592, #604, @jorisstrakeljahn #626)
  • Corrected observability examples, model and batch documentation, and API docstrings. (@ChrisW09 #556, #574, #580, #594, #596, #598, #600, #602, #606, #610, @jorisstrakeljahn #627)
  • Added regression tests for Trompt's prompt initialization and ran coverage in parallel with the CI test matrices. The release candidate passed all 16 PreTab compatibility jobs covering the minimum and newest supported versions, with 92.65% line coverage. (@ChrisW09 #440, @mkumar73 #637, #643, #645)

Contributors

Thank you to @ChrisW09, @jorisstrakeljahn, @xillig, @fbaeumer, and @mkumar73 for contributing to this release.

New Contributors

Full changelog v2.1.0...v2.1.1