ToNumerical#

class sdm.processing.common.ToNumerical#

Bases: Processor

Move categorical columns into the numerical block.

This is an stype conversion step: CategoricalTensor already stores ordinal category ids and the category vocabulary. ToNumerical reuses those existing ids, casts them to the numerical dtype, and clears the categorical block so numerical-only models can consume both original numerical and categorical features. Missing categorical values remain -1.

Unhandled semantic types are preserved unchanged.

Capabilities#

Handled Semantic Types

categorical, numerical

Requires Fitting

❌