Skill 2.1.5
Run model training scripts
Key Concepts
A command job specifies the code folder to upload, the command to run, such as python train.py --data ${{inputs.data}} --lr ${{inputs.lr}}, the environment, the compute (or none for serverless compute), and inputs and outputs. It is submitted with az ml job create --file job.yml or ml_client.jobs.create_or_update(), and its logs, metrics and outputs are kept in the workspace.
Inputs can be data assets, datastore URIs or literal values, with modes such as mount and download. Outputs are written to a path the script receives as an argument and are uploaded to a datastore when the job ends, so the script should write its model to the output folder rather than to a local path that disappears with the node.