Data Types
KumoRFM uses two complementary type systems: Data Types (Dtype) for physical storage and Semantic Types (Stype) for semantic meaning.
Data Types (Dtype)
Data types represent how data is physically stored and processed:
Dtype Mapping
When constructing a LocalTable, each pandas dtype is automatically mapped to a corresponding Kumo dtype. While you can access the dtype of individual columns in a LocalTable, you cannot modify it. For data type modifications, modify the underlying pandas.DataFrame instead before creating the table:
Semantic Types (Stype)
Semantic types define the meaning of data and determine column-level data processing within the model:
Dtype-Stype Compatibility
Not all combinations are valid. Check compatibility using:
Stype Assignment and Encoding
Semantic types can be modified after table creation, provided they are compatible with the underlying data type. The semantic type determines how values are encoded and processed by the foundation model:
For detailed information about how different semantic types affect column preprocessing and encoding, please refer to the Column Preprocessing Guide.