PROFESSIONAL-MACHINE-LEARNING-ENGINEER practice question 22 of 35
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…
Full set: 283 questionsThe core requirement is to interpret the model's results for each individual prediction. This necessitates a method for local, or instance-level, explainability. Vertex AI Explainable AI is specifically designed for this purpose. By training a model (such as with AutoML), deploying it to an endpoint, and enabling feature attributions, you can use the explain request. This returns attribution scores (e.g., using methods like Sampled SHAP) for each feature, indicating how much that feature contributed to a specific prediction. This directly addresses the need to understand the "why" behind each individual classification.
A: Manually inspecting partition rules in a boosted tree ensemble is highly impractical and does not provide a clear, quantitative attribution for each feature's influence on a single prediction. C: The coefficients of a logistic regression model provide global feature importance. They explain the average effect of a feature across all predictions, not why a specific prediction was made. D: L1 regularization is a technique applied during model training to encourage feature sparsity and prevent overfitting. It is not a method used at prediction time to interpret individual results.
1. Vertex AI Documentation - Get explanations: This official documentation explicitly states, "You can get feature attributions on your Vertex AI models to help you understand your model's outputs for specific predictions." It details the process of deploying a model and sending an explain request to get instance-level attributions.
Source: Google Cloud, "Get explanations", Vertex AI Documentation.
Reference: See the "Get online explanations" section, which describes making a projects.locations.endpoints.explain request.
2. Vertex AI Documentation - Overview of Vertex AI Explainable AI: This document introduces the concept of feature attributions for understanding model predictions. It clarifies, "For a given prediction, feature attributions tell you how much each feature in your model contributed to the prediction." This confirms its suitability for interpreting individual predictions.
Source: Google Cloud, "Overview of Vertex AI Explainable AI", Vertex AI Documentation.
Reference: See the "Understanding feature attributions" section.
3. BigQuery ML Documentation - Model weights for logistic regression: The ML.WEIGHTS function in BigQuery ML returns the coefficients for linear and logistic regression models. The documentation describes these as representing the overall learned weights, which is a form of global explanation, not local.
Source: Google Cloud, "The ML.WEIGHTS function", BigQuery ML Documentation.
Reference: The function description explains it returns the weights learned during training.
4. Stanford University CS229 Course Notes - Regularization and Model Selection: This courseware explains that L1 regularization adds a penalty term to the loss function during training to drive some feature weights to zero, thus performing feature selection. This confirms it is a training-time procedure, not a prediction-time interpretation tool.
Source: Ng, A. (2023). CS229 Machine Learning Course Notes. Stanford University.
Reference: Section on "Regularization and Model Selection".
Keep practicing
Take the free PROFESSIONAL-MACHINE-LEARNING-ENGINEER practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other PROFESSIONAL-MACHINE-LEARNING-ENGINEER practice questions
- Question 1You work for an advertising company and want to understand the effectiveness of your comp…
- Question 2You developed a custom model by using Vertex Al to forecast the sales of your company s p…
- Question 3You are an ML engineer at a global shoe store. You manage the ML models for the company's…
- Question 5During batch training of a neural network, you notice that there is an oscillation in the…
- Question 6You want to rebuild your ML pipeline for structured data on Google Cloud. You are using P…
- Question 7Your team is building a convolutional neural network (CNN)-based architecture from scratc…
