
Answer-first summary for fast verification
Answer: No
The solution does not meet the goal because it passes 'dataset1.csv' as a positional argument rather than using the named parameter '--training_data'. The Python script expects an argument named 'training_data', which typically requires using the '--training_data' syntax in command-line interfaces. The community discussion confirms this with 100% consensus on answer B (No), and the comment 'B sure, need parameter' with upvotes reinforces that the named parameter is required. The correct approach would be 'python script.py --training_data dataset1.csv' to properly pass the path as a named parameter.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You plan to run a Python script named script.py as a command job in an Azure Machine Learning workspace. The script reads an argument named training_data, which specifies the path to a training data file named dataset1.csv.
You need to pass the path for the dataset as a parameter value when submitting the script as a training job.
The proposed solution is:
python script.py dataset1.csv
python script.py dataset1.csv
Does this solution meet the goal?
A
Yes
B
No
No comments yet.