Google Cloud Professional Machine Learning Engineer — Question 4
You are training an LSTM-based model on AI Platform to summarize text using the following job submission script: gcloud ai-platform jobs submit training $JOB_NAME \
--package-path $TRAINER_PACKAGE_PATH \
--module-name $MAIN_TRAINER_MODULE \
--job-dir $JOB_DIR \
--region $REGION \
--scale-tier basic \
-- \
--epochs 20 \
--batch_size=32 \
--learning_rate=0.001 \
You want to ensure that training time is minimized without significantly compromising the accuracy of your model. What should you do?
Answer options
- A. Modify the 'epochs' parameter.
- B. Modify the 'scale-tier' parameter.
- C. Modify the 'batch size' parameter.
- D. Modify the 'learning rate' parameter.
Correct answer: B
Explanation
Changing the 'scale-tier' parameter allows you to select a more powerful machine type, which can significantly speed up training time without greatly affecting accuracy. Adjusting 'epochs', 'batch size', or 'learning rate' may impact training time but not as effectively as altering the scale of resources used.