Recall & Review
beginner
What does it mean to 'freeze' layers in a neural network?
Freezing layers means making their weights unchangeable during training. This keeps the learned features intact while training other parts of the model.
Click to reveal answer
beginner
Why would you freeze layers when using transfer learning?
You freeze layers to keep the useful features learned from a large dataset and only train new layers for your specific task. This saves time and avoids losing good features.
Click to reveal answer
beginner
How do you freeze layers in TensorFlow Keras?
Set the layer's 'trainable' property to False, for example: layer.trainable = False. Then recompile and train the model.
Click to reveal answer
intermediate
What does 'unfreezing' layers mean and when is it useful?
Unfreezing means allowing previously frozen layers to update their weights during training. It is useful for fine-tuning the whole model after initial training.
Click to reveal answer
intermediate
What is a common workflow involving freezing and unfreezing layers?
First, freeze base layers and train new layers. Then unfreeze some or all base layers and continue training with a low learning rate to fine-tune.
Click to reveal answer
What happens when you set layer.trainable = False in TensorFlow?
✗ Incorrect
Setting layer.trainable = False freezes the layer so its weights stay fixed during training.
Why freeze layers in transfer learning?
✗ Incorrect
Freezing layers keeps the useful features learned from previous data and focuses training on new layers.
When is unfreezing layers most useful?
✗ Incorrect
Unfreezing allows updating weights to fine-tune the model after training new layers.
What must you do after changing layer.trainable before training?
✗ Incorrect
You must recompile the model so the training configuration updates with the new trainable settings.
Which is a typical step in freezing and unfreezing workflow?
✗ Incorrect
This workflow helps keep learned features and then fine-tunes the whole model carefully.
Explain the concept of freezing and unfreezing layers in neural networks and why it is important in transfer learning.
Think about keeping learned features fixed vs. updating them.
You got /4 concepts.
Describe the steps to freeze and then unfreeze layers in a TensorFlow Keras model during training.
Remember to recompile after changing trainable status.
You got /6 concepts.