Recall & Review
beginner
What is the main purpose of a Dropout layer in a neural network?
A Dropout layer helps prevent overfitting by randomly turning off a fraction of neurons during training. This forces the network to learn more robust features.
Click to reveal answer
intermediate
How does Dropout behave differently during training and testing?
During training, Dropout randomly disables neurons. During testing, all neurons are active but their outputs are scaled to match the training phase's average activity.
Click to reveal answer
beginner
In TensorFlow, how do you add a Dropout layer with a 30% dropout rate?
Use tf.keras.layers.Dropout(0.3) to randomly drop 30% of the inputs during training.
Click to reveal answer
intermediate
Why is Dropout considered a form of regularization?
Dropout reduces reliance on specific neurons by randomly dropping them, which helps the model generalize better to new data and reduces overfitting.
Click to reveal answer
advanced
What happens if you set the dropout rate to 0 or 1?
A dropout rate of 0 means no neurons are dropped (no effect). A rate of 1 means all neurons are dropped, which disables the layer completely and prevents learning.
Click to reveal answer
What does a Dropout layer do during training?
✗ Incorrect
Dropout randomly disables some neurons during training to prevent overfitting.
Which TensorFlow layer adds dropout to a model?
✗ Incorrect
tf.keras.layers.Dropout is used to add dropout regularization.
What is a typical dropout rate value?
✗ Incorrect
A common dropout rate is 0.5, meaning 50% of neurons are dropped during training.
During testing, how does dropout affect the network?
✗ Incorrect
During testing, dropout is turned off but outputs are scaled to match training behavior.
Why might dropout improve model performance?
✗ Incorrect
Dropout reduces co-dependence among neurons, helping the model generalize better.
Explain in your own words how a Dropout layer helps a neural network learn better.
Think about how turning off some neurons can make the network stronger.
You got /4 concepts.
Describe how to add and use a Dropout layer in a TensorFlow model.
Remember the dropout rate is a number like 0.3 for 30%.
You got /4 concepts.