OpenTabular/DeepTab

DeepTab is a Python package that simplifies tabular deep learning by providing a suite of models for regression, classification, and distributional regression tasks. It includes models such as Mambular, TabM, FT-Transformer, TabulaRNN, TabTransformer, and tabular ResNets.

What it solves

DeepTab makes deep learning on tabular data (like spreadsheets or database tables) as easy as using scikit-learn. It handles the messy parts—preprocessing, feature type detection, encoding, scaling, and missing values—automatically, and gives you a single fit/predict/evaluate workflow for many different neural network architectures.

How it works

DeepTab is built on PyTorch and Lightning. It provides 15 neural architectures (Mamba-inspired state space models, Transformers, residual networks, tree-inspired models, and MLPs) each available as a classifier, regressor, or distributional model. You pick a model, call fit() with your data (pandas DataFrame or numpy array), and it handles preprocessing, batching, and training. It also supports hyperparameter tuning via GridSearchCV and built-in Bayesian optimization, plus observability and experiment tracking.

Who it’s for

Data scientists and machine learning practitioners who want to apply deep learning to tabular data without writing custom training loops or preprocessing pipelines. It’s also useful for researchers comparing architectures, and for production deployment because of its consistent API and reproducibility features.

Highlights

  • scikit-learn compatible API: fit, predict, evaluate, works with GridSearchCV.
  • Automatic preprocessing via PreTab: feature-type detection, encoding, scaling, missing-value handling.
  • 15 stable architectures across five families, plus experimental models.
  • Each architecture has three task variants: classifier, regressor, and distributional (LSS) for uncertainty quantification.
  • Built-in hyperparameter optimization via optimize_hparams().
  • Observability and experiment tracking with structured logging, MLflow, TensorBoard.
  • Custom model support: define your own architecture with base classes.
  • Supports GPU acceleration and early stopping out of the box.

Related

  • Project
  • Project
  • Project
  • Project
  • Project