This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
A data scientist wants to run a script as a command job to train a PyTorch model, setting the batch size and learning rate hyperparameters to specified values each time the job runs. What should be done by the data scientist?
Create multiple script files – one for each batch size and learning rate combination you want to use.
Set the batch size and learning rate properties of the command job before submitting the job.
Add arguments for batch size and learning rate to the script, and set them in the command property of the command job.
A data scientist has trained a model in a notebook. The model should be retrained every week on new data. What should the data scientist do to make the code production-ready?
Copy and paste the code from each cell to a script.
Convert the code to one function in a script that reads the data and trains the model.
Convert the code to multiple functions in a script that read the data and train the model.
You must answer all questions before checking your work.
Was this page helpful?