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

# IxnEncoderWorker.fit

**def IxnEncoderWorker.fit**(self, inputs, fx\_choice=REG.LGB, \*\*params) [\[source\]](https://github.com/aigensys-labs/aidflow/blob/main/AID/\TRUENAS\aig_modeling_Products\AID\1_0_Lib\AID\data\encode\ixn_encoder.py#L529)

Analyze the feature set and mine interaction rules.

Trains the shallow GB model, mines interaction rules
from the tree structure, gates on predictive power,
and stores the surviving binary encodings.

#### Parameters

**`inputs`** : *`IxnEncoderInput`*
Configuration including train\_set, num\_features,\
and cat\_features.

**`fx_choice`** : *`str`*
The interaction mining backend. Defaults to REG.LGB.

**`**params`** : *`dict`*
Runtime parameters passed to the internal fitter\
(gb\_max\_leaves, gb\_estimators, gb\_learning\_rate,\
gb\_min\_child\_weight, ixn\_min\_target, ixn\_min\_share,\
ixn\_max\_corr, gini\_cutoff).

#### Returns

*`IxnEncoder`*
The fitted encoder instance.


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