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

# AgentsComparatorWorker.fit

**def AgentsComparatorWorker.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\compare\agents_comparator.py#L477)

Execute the full multi-agent comparison and scoring.

Predicts with all agents, computes per-metric scores
(performance, calibration, cross-audit), standardizes
to a 0–1 scale, applies weights, and ranks agents by
composite score.

#### Parameters

**`inputs`** : *`AgentsComparatorInput`*
Container for target evaluation data and configuration.

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

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

#### Returns

*`AgentsComparator`*
The fitted model instance containing the calculated performance matrices.

> [!NOTE]
>
> **Agent Ranking**: The ranked list is available via
> `.stats.ordered` — the first element is the
> recommended agent.


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