Parameters
inputs : Agent1Input
Custom training configuration. If None, resolves defaults from pipeline sets.
**kwargs : dict
Additional parameters for the Agent 1 worker.
Inputs full schema can be obtained by
ctx.workers.agent1_predictor.spec with main params:inputs == None | → | pipeline data context |
train_set != None | → | custom train data for agent1_predictor training |
woe_features != None | → | optional subset of woe features |
Returns
Agent1PredictorWorker
The populated instance of Agent1PredictorWorker.
Populates attributes into the worker context:
model | → | ctx.workers.agent1_predictor |
inputs | → | ctx.workers.agent1_predictor.spec |
result | → | ctx.workers.agent1_predictor.result |
state | → | ctx.workers.agent1_predictor.state |
report | → | ctx.workers.agent1_predictor.report |
stats | → | ctx.workers.agent1_predictor.stats |
fitter | → | ctx.workers.agent1_predictor.fitter |
Registers data into the datasets context:
predictions | → | ctx.datasets.predictions.train.agent1 |
features | → | ctx.datasets.features.agent1.predicted |
features | → | ctx.datasets.features.agent1.selected |
dropped | → | ctx.datasets.features.agent1.dropped |
stats | → | ctx.datasets.stats.agents.agent1 |
Examples
Defining the Project Context (Control Plane) & Project Scope:Worker → Model → Fitter
Accessing worker’s inputs schema → parameters & types (shown in the display output):Model → Fitter
Once worker has been executed, we can obtain internal fitter state and its parametrization (shown in the display output):Attributes
All worker attributes return
None prior its execution.