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

**def AgentPredictorWorker.transform**(self, data) [\[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#L615)

Applies the champion model to generate P(class=1) scores.
Verifies that all required features are present in the
input to prevent silent failures in production.

<table>
  <tbody>
    <tr><td>`Execute production inference: ML-ready data`</td><td>→</td><td>probabilities.</td></tr>
  </tbody>
</table>

#### Parameters

**`data`** : *`pDF`*
ML-ready data (WOE-encoded for GLM, raw for GBM).\
Must contain all columns in `self.cols.selected`.

#### Returns

*`AgentPredictorResult`*
Predictions + full feature lineage metadata.

#### Raises

* **`ValueError`**: If any required feature is missing from the input.


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