Study FAQ
How do I move a notebook experiment into a repeatable Azure ML job?
Also asked as 2
- How can I make my Azure Machine Learning notebook training reproducible as a job?
- What notebook dependencies should I make explicit before submitting an Azure ML training job?
Answer
Extract the training logic into a script with explicit arguments, data inputs and outputs. Put its dependencies in a reviewed environment and specify the execution target in the v2 job definition. Move values created by earlier notebook cells into the script or declared inputs. Keep the notebook for exploration and explanation.
Try a small known input in a clean context, then submit to the intended workspace and check the expected output and metric. Preserve the same data split, settings and metric calculation during the migration. If the result changes, compare how the notebook and script obtained their inputs and parameters before interpreting the difference as a training improvement.
Microsoft Learn
Full explanation
AI-300: Choosing and Comparing Training Experiments
Study guide · AI-300
Read the full explanation