Skip to main content
Step 17: Champion Promotion (The Executive Decision). The final gate of the pipeline. This method aggregates evidence from the Prediction, Comparison, and Transition steps to officially promote one agent as the ‘Champion.’ It locks the winning model’s state and generates a SHAP-based explainability report for audit purposes.

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):
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.