Recall & Review
beginner
What does ROC stand for in machine learning?
ROC stands for Receiver Operating Characteristic. It is a curve that shows the performance of a classification model at all classification thresholds.
Click to reveal answer
beginner
What is the True Positive Rate (TPR) in the ROC curve?
True Positive Rate (TPR), also called sensitivity or recall, is the ratio of correctly predicted positive observations to all actual positives. It is calculated as TPR = TP / (TP + FN).
Click to reveal answer
beginner
What does the Area Under the Curve (AUC) represent?
AUC measures the entire two-dimensional area underneath the ROC curve. It represents the model's ability to distinguish between classes. A higher AUC means better model performance.
Click to reveal answer
beginner
How do you interpret an AUC value of 0.5?
An AUC of 0.5 means the model performs no better than random guessing. It cannot distinguish between positive and negative classes.
Click to reveal answer
intermediate
In TensorFlow, which function can help compute the ROC curve?
sklearn.metrics.roc_curve (used alongside TensorFlow) can compute the false positive rate and true positive rate needed to plot the ROC curve.
Click to reveal answer
What does the ROC curve plot on its axes?
✗ Incorrect
The ROC curve plots True Positive Rate (y-axis) against False Positive Rate (x-axis) at different threshold settings.
What does a higher AUC value indicate?
✗ Incorrect
A higher AUC means the model is better at distinguishing between positive and negative classes.
Which metric is NOT directly shown on the ROC curve?
✗ Incorrect
Precision is not shown on the ROC curve; it is shown on the Precision-Recall curve.
If a model's ROC curve is a diagonal line from bottom-left to top-right, what does it mean?
✗ Incorrect
A diagonal ROC curve means the model performs like random guessing.
Which TensorFlow function can be used to calculate AUC during training?
✗ Incorrect
tf.keras.metrics.AUC() computes the Area Under the ROC Curve during model training or evaluation.
Explain what the ROC curve shows and why it is useful in evaluating classification models.
Think about how changing the decision threshold affects true and false positives.
You got /5 concepts.
Describe how you would use TensorFlow to compute and plot an ROC curve for a binary classifier.
Consider how to get predictions and labels, then use TensorFlow metrics and a plotting library.
You got /6 concepts.