epochs or learning rate) for each run.

- Define parameters on the pipeline function signature (with optional default values).
- Make components accept those parameters in their signatures.
- Pass the pipeline parameters into component invocations so the component receives the runtime values.
epochs and lr
ml_pipelinedeclares pipeline-level parametersepochsandlrwith defaults10and0.01.train_modelacceptsepochsandlr, so it can use the values passed from the pipeline.- When launching a run you can override
epochsandlrto customize that execution.

Tip: If you do not override a pipeline parameter at runtime, the default value declared in the pipeline function is used. Ensure parameter types are compatible between the pipeline signature and the component signatures.
Further reading
- Kubeflow Pipelines documentation
- For SDK usage and advanced parameter types, see the official Kubeflow Pipelines SDK docs.