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

# Predictor.agent4_predict

**def Predictor.agent4\_predict**(self, data, preprocess=False) [\[source\]](https://github.com/aigensys-labs/aidflow/blob/main/AID/\TRUENAS\aig_modeling_Products\AID\1_0_Lib\AID\predictor\predictor.py#L605)

Predict with Agent 4 (GBM) on input data.

#### Parameters

**`data`** : *`pDF`*
Input data.

**`preprocess`** : *`bool`*
If True, applies `fe_clean` before prediction\
(GBM agents do not require WOE encoding). If False,\
expects cleaned data.

#### Returns

*`Agent4Result`*
P(class=1) + feature lineage metadata.


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