Parameters
inputs : AgentSelectorInput
Custom selection configuration. If None, resolves from ‘test.ml’ state.
**kwargs : dict
Additional parameters passed to the Selector worker.
Inputs full schema can be obtained by
ctx.workers.agent_selector.spec with main params:inputs == None | → | pipeline data context |
data != None | → | custom data for agent_selector overview and choice |
Returns
AgentSelectorWorker
The populated instance of AgentSelectorWorker.
Populates attributes into the worker context:
model | → | ctx.workers.agent_selector |
inputs | → | ctx.workers.agent_selector.spec |
result | → | ctx.workers.agent_selector.result |
state | → | ctx.workers.agent_selector.state |
report | → | ctx.workers.agent_selector.report |
stats | → | ctx.workers.agent_selector.stats |
fitter | → | ctx.workers.agent_selector.fitter |
Registers data into the datasets context:
predictions | → | predictions.train.champion_agent |
predictions | → | predictions.test.champion_agent |
features | → | features.champion_agent.predicted |
features | → | features.champion_agent.selected |
dropped | → | features.champion_agent.dropped |
stats | → | stats.agents.champion_agent |
stats | → | stats.agents.selection |
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.