Bird
0
0

After training an RNN model, you notice the training accuracy is very high but validation accuracy is low. Which of the following is the best way to fix this?

medium📝 Debug Q7 of 15
NLP - Sequence Models for NLP
After training an RNN model, you notice the training accuracy is very high but validation accuracy is low. Which of the following is the best way to fix this?
ARemove the embedding layer
BIncrease the learning rate
CAdd dropout layers to reduce overfitting
DUse fewer training samples
Step-by-Step Solution
Solution:
  1. Step 1: Understand high train but low validation accuracy

    This indicates overfitting, where model memorizes training data but fails to generalize.
  2. Step 2: Apply regularization technique

    Adding dropout randomly disables neurons during training, helping model generalize better.
  3. Final Answer:

    Add dropout layers to reduce overfitting -> Option C
  4. Quick Check:

    Overfitting fix = Add dropout [OK]
Quick Trick: Dropout helps prevent overfitting in RNNs [OK]
Common Mistakes:
MISTAKES
  • Increasing learning rate can worsen overfitting
  • Removing embedding layer loses word meaning
  • Reducing training samples reduces learning

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More NLP Quizzes