Professional Machine Learning Engineer Practice Test

Professional Machine Learning Engineer Practice Test practice questions, page 5 of 15, with answer review and explanations.

Question 21

You have deployed multiple versions of an image classification model on AI Platform. You want to monitor the performance of the model versions over time. How should you perform this comparison?

  1. Compare the loss performance for each model on a held-out dataset.
  2. Compare the loss performance for each model on the validation data.
  3. Compare the receiver operating characteristic (ROC) curve for each model using the What-If Tool.
  4. Compare the mean average precision across the models using the Continuous Evaluation feature.

Question 22

You trained a text classification model. You have the following SignatureDefs: You started a TensorFlow-serving component server and tried to send an HTTP request to get a prediction using: headers = {"content-type": "application/json"} json_response = requests.post('http: //localhost:8501/v1/models/text_model:predict', data=data, headers=headers) What is the correct way to write the predict request?

  1. data = json.dumps({ג€signature_nameג€: ג€seving_defaultג€, ג€instancesג€ [['ab', 'bc', 'cd']]})
  2. data = json.dumps({ג€signature_nameג€: ג€serving_defaultג€, ג€instancesג€ [['a', 'b', 'c', 'd', 'e', 'f']]})
  3. data = json.dumps({ג€signature_nameג€: ג€serving_defaultג€, ג€instancesג€ [['a', 'b', 'c'], ['d', 'e', 'f']]})
  4. data = json.dumps({ג€signature_nameג€: ג€serving_defaultג€, ג€instancesג€ [['a', 'b'], ['c', 'd'], ['e', 'f']]})

Question 23

Your organization's call center has asked you to develop a model that analyzes customer sentiments in each call. The call center receives over one million calls daily, and data is stored in Cloud Storage. The data collected must not leave the region in which the call originated, and no Personally Identifiable Information (PII) can be stored or analyzed. The data science team has a third-party tool for visualization and access which requires a SQL ANSI-2011 compliant interface. You need to select components for data processing and for analytics. How should the data pipeline be designed?

  1. 1= Dataflow, 2= BigQuery
  2. 1 = Pub/Sub, 2= Datastore
  3. 1 = Dataflow, 2 = Cloud SQL
  4. 1 = Cloud Function, 2= Cloud SQL

Question 24

You are an ML engineer at a global shoe store. You manage the ML models for the company's website. You are asked to build a model that will recommend new products to the user based on their purchase behavior and similarity with other users. What should you do?

  1. Build a classification model
  2. Build a knowledge-based filtering model
  3. Build a collaborative-based filtering model
  4. Build a regression model using the features as predictors

Question 25

You work for a social media company. You need to detect whether posted images contain cars. Each training example is a member of exactly one class. You have trained an object detection neural network and deployed the model version to AI Platform Prediction for evaluation. Before deployment, you created an evaluation job and attached it to the AI Platform Prediction model version. You notice that the precision is lower than your business requirements allow. How should you adjust the model's final layer softmax threshold to increase precision?

  1. Increase the recall.
  2. Decrease the recall.
  3. Increase the number of false positives.
  4. Decrease the number of false negatives.