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

# AgentsTransitionWorker.fit

**def AgentsTransitionWorker.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\selector\transition\agents_transition.py#L436)

Execute the full cross-agent transition analysis.

Predicts with all agents, computes pairwise cross-
tabulations, tests significance, and assembles the
complete transition stats.

#### Parameters

**`inputs`** : *`AgentsTransitionInput`*
Container for evaluation data and execution configuration.

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

**`**params`** : *`dict`*
Runtime parameter overrides, passed to the internal fitter\
(select\_alpha, select\_bins).

#### Returns

*`AgentsTransition`*
The fitted model instance containing calculated transition vectors.

> [!NOTE]
>
> **Agent Pairs**: By default, all registered agents are
> included. Use `transform(data, agents=(1, 3))` to
> restrict to specific pairs.


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