sdm.processing#
Processor API#
Base processor for tensor-aware table transformations. |
|
Extend a |
|
Base processor for ensemble-aware table transformations. |
|
Extend a |
|
Processing contract around an external model boundary. |
Common Processors#
Return inputs unchanged. |
|
Adapt a stateless callable to the |
|
Apply processors and callables to a table in sequence. |
|
Remove all columns for specific semantic types. |
|
Apply separate processor pipelines to columns grouped by semantic type. |
|
Apply separate processors based on the semantic type of the target. |
|
Apply separate feature processors to task and related tables. |
|
Adapt an ordinary processor to ensemble-aware processing. |
|
Route each table or ensemble member through one selected option. |
|
Move categorical columns into the numerical block. |
|
Permute numerical feature columns and their names. |
|
Select a subset of columns for each semantic type. |
Numerical Processors#
Cast numerical columns to a floating-point dtype. |
|
Clamp numerical values to a fixed interval. |
|
Clamp feature columns to fitted quantile bounds. |
|
Two-stage z-score outlier clipping with soft logarithmic bounds. |
|
Soft-clip numerical values toward |
|
Replace NaN feature values with fitted per-column means. |
|
Apply a feature-wise Yeo-Johnson power transform. |
|
Map numerical columns through their empirical quantiles. |
|
Center and scale each feature column. |
|
Center and scale each feature column with median and quantile range. |
|
Randomly negate numerical columns. |
|
Remove non-informative numerical columns learned during fit. |
|
Project numerical columns onto their principal components. |
|
Randomly project numerical columns. |
Categorical Processors#
Align categorical columns to categories observed during fitting. |
|
Independently permute the integer codes of categorical columns. |
|
Replace missing categorical values with fitted per-column modes. |
|
Add the log row count of each categorical value. |
Text Processors#
Encode text columns as character n-gram TF-IDF vectors. |
|
Transform text columns with a |
Datetime Processors#
Add numerical calendar fields derived from datetime columns. |
Post-Processors#
Reduce the leading ensemble dimension of model outputs. |
|
Apply softmax to logits after temperature scaling. |
|
Sort quantile predictions in ascending order. |