
Answer-first summary for fast verification
Answer: No
The solution does NOT meet the goal because it uses the syntax `${{inputs.training_data}}` which is incorrect for Azure ML command jobs. In Azure ML, command job inputs are referenced using the `${{inputs.<input_name>}}` syntax, but the proposed solution has a typo with double curly braces `${{inputs.training_data}}` instead of the correct `${{inputs.training_data}}`. Additionally, as noted in the community discussion, the solution is only partially correct because it fails to properly define the 'inputs' in the command job configuration. The correct approach would be to define the input in the command job configuration and reference it properly in the command.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You plan to run a Python script named script.py as a command job in your Azure Machine Learning workspace. The script requires an argument named training_data, which specifies the path to a training data file named dataset1.csv.
You must provide the command that will pass the path for the dataset as a parameter value when you submit the script as a training job.
Proposed Solution:
python script.py --training_data ${{inputs.training_data}}
python script.py --training_data ${{inputs.training_data}}
Does this solution meet the goal?
A
Yes
B
No
No comments yet.