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

# FeatureCleanerWorker.fit

**def FeatureCleanerWorker.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\screen\fe_cleaner.py#L529)

Execute the full data quality screening and type enforcement.

Screens training features against quality gates,
auto-repairs type issues, and enforces the trained
type mapping on the test set.

#### Parameters

**`inputs`** : *`FeCleanerInput`*
Training + test datasets and variable type\
classification.

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

**`**params`** : *`dict`*
Runtime parameters passed to the internal fitter\
(max\_miss, max\_1val, max\_var, max\_corr, cat\_max, downcast).

#### Returns

*`FeatureCleaner`*
The fitted instance with clean feature set and\
type mapping available.


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