StypeDispatch#

class sdm.processing.common.StypeDispatch(*, numerical: object = None, categorical: object = None, datetime: object = None, id: object = None, text: object = None)#

Bases: EnsembleProcessor, EnsembleInvertibleMixin

Apply separate processor pipelines to columns grouped by semantic type.

For each configured route, matching columns from a TableTensor or EnsembleTable are passed to that processor. Ordinary processors learn separate state for each compatible ensemble group, while ensemble-aware processors operate on all groups directly. Compatible members are processed together and route outputs are concatenated in semantic type order while preserving logical member order. A route may change column values, names, count, or order. With the default passthrough behavior, unconfigured semantic types follow in input order.

Inverse transform supports routes that preserve their semantic type. Every active route must be invertible, and routes must not share an output semantic type. Passthrough columns are preserved.

Parameters:
  • numerical (object) – Processor or stateless callable route for numerical columns.

  • categorical (object) – Processor or stateless callable route for categorical columns.

  • datetime (object) – Processor or stateless callable route for datetime columns.

  • text (object) – Processor or stateless callable route for text columns.

  • id (object) – Processor or stateless callable route for identifier columns.

Capabilities#

Handled Semantic Types

instance-specific

Requires Fitting

instance-specific