How to interpret individual predictions using Vertex AI?

You work for a retail company. You have been asked to develop a model to predict whether a customer will purchase a product on a given day. Your team has processed the company’s sales data, and created a table with the following rows: • Customer_id • Product_id • Date • Days_since_last_purchase (measured in days) • Average_purchase_frequency (measured in 1/days) • Purchase (binary class, if customer purchased product on the Date) You need to interpret your model’s results for each individual prediction. What should you do?

  1. Create a BigQuery table. Use BigQuery ML to build a boosted tree classifier. Inspect the partition rules of the trees to understand how each prediction flows through the trees.
  2. Create a Vertex AI tabular dataset. Train an AutoML model to predict customer purchases. Deploy the model to a Vertex AI endpoint and enable feature attributions. Use the “explain” method to get feature attribution values for each individual prediction. Source Reference Answer
  3. Create a BigQuery table. Use BigQuery ML to build a logistic regression classification model. Use the values of the coefficients of the model to interpret the feature importance, with higher values corresponding to more importance
  4. Create a Vertex AI tabular dataset. Train an AutoML model to predict customer purchases. Deploy the model to a Vertex AI endpoint. At each prediction, enable L1 regularization to detect non-informative features.

Community Votes

B
100%

100% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.

Community Insight

This question tests the distinction between global model interpretation (coefficients, tree rules) and local prediction explanation, requiring the use of Vertex AI feature attributions for individual instances.

To interpret individual model predictions on Google Cloud, enabling Vertex AI feature attributions is the standard approach. The community consensus confirms that using the 'explain' method on an AutoML tabular model provides the specific insights needed for each prediction.

Selecting Option C is a common error because logistic regression coefficients explain global feature importance, whereas the question specifically asks for the rationale behind individual predictions.

Community Discussion (6 comments)

LaxmanTiwari 👍 1 Selected: B
" simplest approach", the option B is the best choice.
fitri001 👍 2 Selected: B
Individual Prediction Explanation: Vertex AI feature attributions provide insights into how each feature (e.g., days_since_last_purchase, average_purchase_frequency) contributes to a specific prediction for a customer-product combination. This allows you to understand the rationale behind the model's prediction for each instance. AutoML Convenience: AutoML simplifies model training without extensive configuration.
ddogg 👍 1 Selected: B
Vertex AI feature attributions: This is the most direct approach. By enabling feature attributions, you get explanations for each prediction, highlighting how individual features contribute to the model's output. This is crucial for understanding specific customer purchase predictions.
BlehMaks 👍 2 Selected: B
B is correct
36bdc1e 👍 1
B loca interpretability we Use the "explain" method to get feature attribution values for each individual prediction.
pikachu007 👍 1 Selected: B
Individual prediction interpretability: Feature attributions specifically address the need to understand how features contribute to individual predictions, providing fine-grained insights. Vertex AI integration: Vertex AI offers seamless integration of feature attributions with AutoML models, simplifying the process. Model flexibility: AutoML can explore various model architectures, potentially finding the most suitable one for this task, while still providing interpretability.

Comments & Corrections

No comments yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Submitted for moderation before publishing. Keep it helpful and respectful.

Expert Analysis

Why the Answer Is Correct

Option B is correct because Vertex AI AutoML Tables offers built-in explainability features designed for local interpretability. By enabling feature attributions and using the "explain" method, you obtain attribution values (such as Shapley values) that quantify the contribution of each feature to a specific prediction's output. This directly addresses the business requirement to understand exactly why a specific customer is predicted to purchase a product on a given day.

Why the Other Options Are Wrong

Option A is incorrect because manually inspecting partition rules in boosted trees is complex, impractical for large ensembles, and does not provide a clear quantitative attribution for individual predictions. Option C is incorrect because logistic regression coefficients indicate the global relationship and weight of features across the entire dataset, not the specific contribution of a feature's value for a single data point. Option D is incorrect because L1 regularization is a training technique used for feature selection to prevent overfitting, not a method for interpreting predictions at inference time.

Community Comment Notes

Community comments strongly support Option B, highlighting that feature attributions provide "fine-grained insights" into how features like days_since_last_purchase contribute to specific outputs. Users noted that this is the "simplest approach" and the "most direct approach" for local interpretability compared to other methods. Comments also emphasized that Vertex AI integrates these capabilities seamlessly with AutoML, making it the preferred solution over manual inspection of trees or global coefficients.

Official Reference

Exam Strategy

When you see keywords like "individual prediction" or "interpret results for each," immediately look for options involving Explainable AI (XAI) or feature attributions. Avoid choosing options that rely on global metrics like model coefficients or manual tree inspection for local interpretability requirements.

Related Analysis

Practice All PMLE Questions

Access 65 questions with complete answers and detailed explanations.

View Full PMLE Practice Test →

← Back to PMLE Study Guide