Hint: Output shape matches batch size and final Dense units [OK]
Common Mistakes:
Confusing spatial input shape with output shape
Ignoring pooling layer effect on output shape
Assuming output shape includes input image dimensions
4. You tried transfer learning but your model overfits quickly. Which fix below correctly addresses this issue in TensorFlow?
medium
A. Freeze more layers and add dropout layers to reduce overfitting
B. Unfreeze all layers and train with a very high learning rate
C. Remove the pre-trained base model and train from scratch
D. Use fewer training examples to speed up training
Solution
Step 1: Identify overfitting causes
Overfitting happens when model learns noise; freezing layers and dropout help reduce it.
Step 2: Evaluate options
Freeze more layers and add dropout layers to reduce overfitting freezes more layers and adds dropout, both good to reduce overfitting.
Final Answer:
Freeze more layers and add dropout layers to reduce overfitting -> Option A
Quick Check:
Freeze layers + dropout reduces overfitting [OK]
Hint: Freeze layers and add dropout to fight overfitting [OK]
Common Mistakes:
Unfreezing all layers with high learning rate causes more overfitting
Removing pre-trained model loses transfer learning benefits
Using fewer examples worsens overfitting
5. You have a small dataset of 500 images for a new classification task. How does transfer learning help you save time and data compared to training a model from scratch in TensorFlow?
hard
A. By training a large model from scratch with all layers trainable
B. By using a pre-trained model and freezing most layers, you need fewer images and less training time
C. By ignoring pre-trained weights and only using the architecture
D. By increasing the dataset size artificially without changing the model
Solution
Step 1: Understand small dataset challenges
Small datasets cause overfitting and long training if model is trained from scratch.
Step 2: Explain transfer learning benefits
Using a pre-trained model with frozen layers reuses learned features, needing fewer images and less time.
Final Answer:
By using a pre-trained model and freezing most layers, you need fewer images and less training time -> Option B
Quick Check:
Transfer learning saves time and data by reusing knowledge [OK]
Hint: Freeze layers in pre-trained model to save data and time [OK]
Common Mistakes:
Training large model from scratch with small data
Ignoring pre-trained weights loses transfer learning advantage
Assuming data size increase alone solves training time
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.