Skip to main content
Step 13: Agent 4 Training Worker. Orchestrates the fitting of Learning Agent 4. By default, it consumes ‘train.ml’ and utilizes numerical/categorical features from the global context.

Parameters

inputs : Agent4Input
Custom training configuration. If None, resolves defaults from pipeline sets.
**kwargs : dict
Additional parameters for the Agent 4 worker.
Inputs full schema can be obtained by ctx.workers.agent4_predictor.spec with main params:
inputs == None→pipeline data context
train_set != None→custom train data for agent4_predictor training
woe_features != None→optional subset of woe features

Returns

Agent4PredictorWorker
The populated instance of Agent4PredictorWorker.
Populates attributes into the worker context:
model→ctx.workers.agent4_predictor
inputs→ctx.workers.agent4_predictor.spec
result→ctx.workers.agent4_predictor.result
state→ctx.workers.agent4_predictor.state
report→ctx.workers.agent4_predictor.report
stats→ctx.workers.agent4_predictor.stats
fitter→ctx.workers.agent4_predictor.fitter
Registers data into the datasets context:
predictions→ctx.datasets.predictions.train.agent4
features→ctx.datasets.features.agent4.predicted
features→ctx.datasets.features.agent4.selected
dropped→ctx.datasets.features.agent4.dropped
stats→ctx.datasets.stats.agents.agent4

Examples

Defining the Project Context (Control Plane) & Project Scope:

Worker → Model → Fitter

Accessing worker’s inputs schema → parameters & types (shown in the display output):
Accessing model’s fitter options and schema → parameters & types (shown in the display output):
Executing workers with defaults → auto provided by the context:
Once worker has been executed, thus its main model has been built, we have access to all populated attributes.
View to model report of executed worker:

Model → Fitter

Once worker has been executed, we can obtain internal fitter state and its parametrization (shown in the display output):
The fitted fitter provides all populated attributes.
Direct choice and parametrization of internal fitter:
In the experimenting phase, when various parametrization settings might be under testing (note that internal fitter API (fx_config) can vary with respect to chosen fitter):

Attributes

All worker attributes return None prior its execution.