API Reference
This page documents the public API of pretab: the high-level
pretab.preprocessor.Preprocessor and every transformer exported from
pretab.transformers.
Preprocessor
Preprocessor class for automated tabular feature preprocessing using scikit-learn-compatible pipelines. |
Encoders and binning
Piecewise Linear Encoding (PLE) transformer for numerical features. |
|
Custom binning transformer for one-dimensional numerical features. |
|
Convert ordinal-encoded features into a one-hot encoded representation. |
|
Encode categorical text features into embeddings using a pre-trained language model. |
Feature maps
Radial Basis Function (RBF) feature expansion for numerical tabular data. |
|
Applies ReLU basis expansion to input features using fixed or data-driven center placement. |
|
Applies sigmoid basis expansion to input features using specified or data-driven center placement. |
|
Applies hyperbolic tangent (tanh) basis expansion to input features using specified or learned center locations. |
Splines
Cubic Spline Transformer for one-dimensional or multi-dimensional input features. |
|
Natural Cubic Spline Transformer for continuous features. |
|
P-spline Transformer for smooth spline basis expansion with penalization. |
|
Tensor Product Spline Transformer for multivariate smooth basis expansion. |
|
Thin Plate Spline Transformer for smooth univariate basis expansion. |
Temporal
Encode a cyclical time variable using sine and cosine components. |
|
Create lagged features for time-series inputs. |
|
Compute rolling-window statistics over time-series inputs. |