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

# AgentPredictorWorker.transform_dual

**def AgentPredictorWorker.transform\_dual**(self, inputs) [\[source\]](https://github.com/aigensys-labs/aidflow/blob/main/AID/\TRUENAS\aig_modeling_Products\AID\1_0_Lib\AID\selector\select\agent\champion_predictor.py#L650)

Synchronized dual inference: train + test in one call.

Executes `transform` on both the training and test
sets, returning paired predictions. Used for pre-flight
validation before go-live deployment — ensures that
the scoring pipeline produces consistent results across
both data sources.

#### Parameters

**`inputs`** : *`AgentPredictorInput`*
Must contain both `train_set` and `test_set`\
(ML-ready data).

#### Returns

*`AgentPredictorResultDual`*
Paired predictions: `data` (train) and\
`test_data` (test), with full feature lineage.


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