Screenshot 2025-03-27 at 10.57.06 PM.png

Screenshot 2025-03-27 at 10.57.14 PM.png

Screenshot 2025-03-27 at 10.57.30 PM.png

Screenshot 2025-03-27 at 10.57.44 PM.png

Screenshot 2025-03-27 at 10.57.52 PM.png

Screenshot 2025-03-27 at 10.57.58 PM.png

Screenshot 2025-03-27 at 11.00.03 PM.png

Screenshot 2025-03-27 at 11.00.17 PM.png

Screenshot 2025-04-26 at 2.11.07 PM.png

Review Questions

  1. C ✅

  2. B ✅

  3. B ❌ C

    1. C. For imbalanced datasets, AUC PR is a way to minimize false positives compared to AUC ROC.
  4. C ❌ B

    1. B. Since the model is performing well with training data, it is a case of data leakage. Cross‐validation is one of the strategies to overcome data leakage. We covered this in Chapter 2.
  5. A, B ✅

  6. D ❌ A

    1. A. Use a tf.data.Dataset.prefetch transformation.

    Create a tf.data.Dataset.prefetch transformation.

  7. C ✅

  8. A ✅

  9. D ❌ A

    1. A. TensorFlow Transform is the most scalable way to transform your training and testing data for production workloads.

    b. Why not other options?

  10. A ❌ D

    1. D. Since the model is underperforming with production data, there is a training‐serving skew. Using a tf.Transform pipeline helps prevent this skew by creating transformations separately for training and testing.