Recall & Review
beginner
What is StepLR in PyTorch?
StepLR is a learning rate scheduler that decreases the learning rate by a fixed factor every set number of epochs. It helps the model learn more slowly as training progresses.
Click to reveal answer
intermediate
How does MultiStepLR differ from StepLR?
MultiStepLR decreases the learning rate at specific epochs (called milestones) instead of fixed intervals. This allows more control over when the learning rate changes.
Click to reveal answer
beginner
What parameters do you need to provide to StepLR?
You need to provide the optimizer, step_size (number of epochs between each decrease), and gamma (the factor to multiply the learning rate by).
Click to reveal answer
beginner
What are milestones in MultiStepLR?
Milestones are a list of epoch numbers where the learning rate will be decreased by multiplying with gamma.
Click to reveal answer
beginner
Why use learning rate schedulers like StepLR or MultiStepLR?
They help the model converge better by reducing the learning rate over time, which can improve accuracy and prevent overshooting the best solution.
Click to reveal answer
What does StepLR do to the learning rate?
✗ Incorrect
StepLR reduces the learning rate by multiplying it by gamma every step_size epochs.
In MultiStepLR, what are milestones?
✗ Incorrect
Milestones are specific epochs where the learning rate is decreased.
Which parameter controls how much the learning rate decreases in StepLR?
✗ Incorrect
Gamma is the factor multiplied with the learning rate to reduce it.
If you want to reduce learning rate at epochs 30 and 80, which scheduler is best?
✗ Incorrect
MultiStepLR lets you specify exact epochs (milestones) to reduce the learning rate.
What is the main benefit of using learning rate schedulers?
✗ Incorrect
Schedulers help the model converge better by adjusting learning rate during training.
Explain how StepLR works and what parameters it needs.
Think about a clock ticking every few epochs to reduce learning rate.
You got /3 concepts.
Describe the difference between StepLR and MultiStepLR and when you might use each.
Compare fixed steps vs chosen milestones.
You got /4 concepts.