MLA-C01 Question 159
Single answerYou are training a deep learning model on Amazon SageMaker using a dataset with 100,000 samples. You have configured a batch size of 1,000 and plan to run the model for 10 epochs. How many steps will be executed per epoch during training?
- A
10
- B
100
- C
1,000
- D
10,000
Show answer and explanation
Correct answer: C
Explanation
The number of steps per epoch is determined by dividing the total number of samples in the dataset by the batch size. In this case, 100,000 samples divided by a batch size of 1,000 results in 100 steps per epoch. Understanding these relationships is critical to configuring training jobs effectively in AWS SageMaker and other machine learning frameworks.
- A. Incorrect.
Incorrect. 10 is the number of epochs, not the number of steps per epoch.
- B. Incorrect.
Incorrect. 100 is unrelated to the number of steps per epoch given the dataset size and batch size.
- C. Correct.
Correct. The number of steps per epoch is calculated by dividing the total dataset size (100,000) by the batch size (1,000), which results in 100 steps per epoch.
- D. Incorrect.
Incorrect. 10,000 is incorrect because it does not correctly divide the dataset size by the batch size.