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

# ObservationStabilizerWorker.fit

**def ObservationStabilizerWorker.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\obs_stabilizer.py#L486)

Execute the full outlier detection and filtering pipeline.

Trains Isolation Forest on the feature matrix, scores
all observations, and removes flagged outliers from the
training set.

#### Parameters

**`inputs`** : *`ObsStabilizerInput`*
Training data and feature lists.

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

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

#### Returns

*`ObservationStabilizer`*
The fitted instance with the clean observation set\
and outlier flags available.


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