Exam Professional Machine Learning Engineer topic 1 question 145 discussion - ExamTopics


A machine learning engineer seeks to optimize a TensorFlow DNN regressor for faster serving latency without significantly impacting prediction accuracy.
AI Summary available β€” skim the key points instantly. Show AI Generated Summary
Show AI Generated Summary

You have trained a DNN regressor with TensorFlow to predict housing prices using a set of predictive features. Your default precision is tf.float64, and you use a standard TensorFlow estimator:

Your model performs well, but just before deploying it to production, you discover that your current serving latency is 10ms @ 90 percentile and you currently serve on CPUs. Your production requirements expect a model latency of 8ms @ 90 percentile. You're willing to accept a small decrease in performance in order to reach the latency requirement. Therefore your plan is to improve latency while evaluating how much the model's prediction decreases. What should you first try to quickly lower the serving latency?

  • A. Switch from CPU to GPU serving.
  • B. Apply quantization to your SavedModel by reducing the floating point precision to tf.float16.
  • C. Increase the dropout rate to 0.8 and retrain your model.
  • D. Increase the dropout rate to 0.8 in _PREDICT mode by adjusting the TensorFlow Serving parameters.
Show Suggested Answer Hide Answer
Suggested Answer: B πŸ—³οΈ

🧠 Pro Tip

Skip the extension β€” just come straight here.

We’ve built a fast, permanent tool you can bookmark and use anytime.

Go To Paywall Unblock Tool
Sign up for a free account and get the following:
  • Save articles and sync them across your devices
  • Get a digest of the latest premium articles in your inbox twice a week, personalized to you (Coming soon).
  • Get access to our AI features

  • Save articles to reading lists
    and access them on any device
    If you found this app useful,
    Please consider supporting us.
    Thank you!

    Save articles to reading lists
    and access them on any device
    If you found this app useful,
    Please consider supporting us.
    Thank you!