Recall & Review
beginner
What is a classification report in machine learning?
A classification report summarizes the performance of a classification model by showing key metrics like precision, recall, and F1-score for each class.
Click to reveal answer
beginner
Define precision in a classification report.
Precision is the ratio of correctly predicted positive observations to the total predicted positives. It shows how many selected items are relevant.
Click to reveal answer
beginner
What does recall measure in a classification report?
Recall measures the ratio of correctly predicted positive observations to all actual positives. It shows how many relevant items are selected.
Click to reveal answer
intermediate
Explain the F1-score in a classification report.
The F1-score is the harmonic mean of precision and recall. It balances both metrics to give a single performance score.
Click to reveal answer
intermediate
How can you generate a classification report using TensorFlow and scikit-learn?
After training a TensorFlow model, use it to predict labels on test data, then use scikit-learn's classification_report function to print precision, recall, and F1-score.
Click to reveal answer
Which metric in a classification report tells you how many of the predicted positives are actually correct?
✗ Incorrect
Precision measures the correctness of positive predictions.
Recall is best described as:
✗ Incorrect
Recall measures how many actual positives were correctly identified.
What does the F1-score combine?
✗ Incorrect
F1-score is the harmonic mean of precision and recall.
Which library is commonly used with TensorFlow to generate classification reports?
✗ Incorrect
scikit-learn provides the classification_report function.
In a classification report, what does a high recall but low precision indicate?
✗ Incorrect
High recall with low precision means many positives are found but many false positives occur.
Explain the key metrics shown in a classification report and why each is important.
Think about what each metric tells you about the model's predictions.
You got /4 concepts.
Describe how you would generate and interpret a classification report after training a TensorFlow model.
Consider the steps from prediction to report generation and what the results mean.
You got /3 concepts.