def Predictor.cat_encode(self, data=None, subset=None) [source]
Apply trained categorical encoding to input data.
Parameters
data : pDF | None
Input data. If None, returns the trained encoding
map (category → code per variable).
map (category → code per variable).
subset : list
Specific features to process and return.
Default = None: all trained features.
Default = None: all trained features.
Returns
CatEncoderResult | dict
• data provided: data of encoded categorical features
• data is None: trained category mappings
• data is None: trained category mappings
