MLA-C01 Question 161
Select 3You are training a deep learning model using Amazon SageMaker and have configured the training process with a batch size of 64, 10 epochs, and 1,000 training samples. Which of the following statements are correct about the training process?
- A
Each epoch will involve 16 steps during training.
- B
The model will complete 160 steps in total across all epochs.
- C
Increasing the batch size would reduce the number of steps per epoch.
- D
Decreasing the number of epochs will reduce the total number of steps.
Show answer and explanation
Correct answers: A, C, D
Explanation
Understanding the relationships between training parameters like epoch, steps, and batch size is crucial for configuring an efficient training process. The number of steps per epoch is derived by dividing the total number of training samples by the batch size. Total steps are determined by multiplying steps per epoch by the number of epochs. Adjusting batch size or the number of epochs directly impacts the total training steps, which affects both training time and model performance.
- A. Correct.
Correct. The number of steps per epoch is calculated as the total number of training samples (1,000) divided by the batch size (64), resulting in 15.625, which is rounded up to 16 steps per epoch.
- B. Incorrect.
Correct. Since there are 10 epochs and each epoch consists of 16 steps, the total number of steps is 10 × 16 = 160.
- C. Correct.
Correct. Increasing the batch size would mean each step processes more samples, so fewer steps would be required to complete an epoch.
- D. Correct.
Correct. Reducing the number of epochs directly decreases the total number of steps, as total steps are calculated as steps per epoch × number of epochs.