> ## 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.

# DataEncoderWorker.fit

**def DataEncoderWorker.fit**(self, inputs, fx\_choice=REG.AIG, \*\*params) [\[source\]](https://github.com/aigensys-labs/aidflow/blob/main/AID/\TRUENAS\aig_modeling_Products\AID\1_0_Lib\AID\data\transform\data_encoder.py#L464)

Apply the full encoding pipeline to produce ML-ready samples.

Executes dtypes standardization (if mismatch), WOE encoding
(only if WoeEncoder was fitted during pipeline), and train/test split.

#### Parameters

**`inputs`** : *`DataEncoderInput`*
Input configuration including train\_set, test\_set,\
and woe\_features.

**`fx_choice`** : *`str`*
The encoding strategy identifier. Defaults to REG.AIG.

**`**params`** : *`dict`*
Runtime parameters passed to the internal fitter\
(test\_size).

#### Returns

*`DataEncoder`*
The fitted encoder instance with ML-ready samples.


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