> ## Documentation Index
> Fetch the complete documentation index at: https://aidflow.aigensys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Predictor.num_encode

**def Predictor.num\_encode**(self, data=None, subset=None) [\[source\]](https://github.com/aigensys-labs/aidflow/blob/main/AID/\TRUENAS\aig_modeling_Products\AID\1_0_Lib\AID\predictor\predictor.py#L359)

Apply trained numerical binning to input data.

#### Parameters

**`data`** : *`pDF | None`*
Input data. If None, returns the trained encoding\
map (bin boundaries per variable).

**`subset`** : *`list`*
Specific features to process and return.\
Default = None: all trained features.

#### Returns

*`NumEncoderResult | dict`*
• data provided: data of encoded numerical features\
• data is None: trained bin boundaries


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.