Skip to main content
def Agent2PredictorWorker.fit(self, inputs, fx_choice=REG.ELASTIC, **params) [source]
Train the dense GLM agent on WOE-encoded features. Executes the full two-stage feature selection pipeline (regularization search + shadow pruning), fits the final Logistic Regression, and computes validation diagnostics.

Parameters

inputs : Agent2Input
Training configuration including train_set and
woe_features.
fx_choice : str
The regularization strategy: REG.ELASTIC (default),
REG.LASSO, or REG.LOGREG.
**params : dict
Runtime parameters passed to the internal fitter
(glm_eps, glm_tol, shadow_quantile, cross_val_folds).

Returns

Agent2Predictor
The fitted agent instance.