Recall & Review
beginner
What is the purpose of the training history object in TensorFlow?
The training history object stores the values of metrics like loss and accuracy for each epoch during model training. It helps track how the model improves over time.
Click to reveal answer
beginner
How can you access the training loss values after training a model in TensorFlow?
You can access the training loss values using history.history['loss'], where history is the object returned by model.fit().
Click to reveal answer
intermediate
Why is it useful to plot training and validation accuracy during training?
Plotting training and validation accuracy helps you see if the model is learning well and if it is overfitting or underfitting by comparing performance on training and unseen data.
Click to reveal answer
beginner
What Python library is commonly used to visualize training history in TensorFlow?
Matplotlib is commonly used to create plots of training and validation metrics over epochs.
Click to reveal answer
intermediate
What does it mean if validation loss starts increasing while training loss keeps decreasing?
It usually means the model is overfitting: it learns the training data too well but performs worse on new data.
Click to reveal answer
What does the 'history' object returned by model.fit() contain?
✗ Incorrect
The history object contains the recorded metrics like loss and accuracy for each epoch during training.
Which method is used to train a model in TensorFlow and get the training history?
✗ Incorrect
model.fit() trains the model and returns a history object with training metrics.
If training accuracy improves but validation accuracy stays the same, what might be happening?
✗ Incorrect
This suggests overfitting: the model fits training data well but does not generalize.
Which Python library is best for plotting training history graphs?
✗ Incorrect
Matplotlib is widely used for creating plots and visualizations.
What does a decreasing training loss and increasing validation loss indicate?
✗ Incorrect
This pattern indicates overfitting, where the model fits training data too closely.
Explain how to use the training history object to visualize model performance over epochs.
Think about what data is stored in history and how plotting helps understand training.
You got /4 concepts.
Describe what it means when validation accuracy is lower than training accuracy and how visualization helps identify this.
Consider how training and validation metrics relate to model generalization.
You got /4 concepts.