Google Cloud Professional Machine Learning Engineer — Question 54
You are an ML engineer at a global car manufacture. You need to build an ML model to predict car sales in different cities around the world. Which features or feature crosses should you use to train city-specific relationships between car type and number of sales?
Answer options
- A. Thee individual features: binned latitude, binned longitude, and one-hot encoded car type.
- B. One feature obtained as an element-wise product between latitude, longitude, and car type.
- C. One feature obtained as an element-wise product between binned latitude, binned longitude, and one-hot encoded car type.
- D. Two feature crosses as an element-wise product: the first between binned latitude and one-hot encoded car type, and the second between binned longitude and one-hot encoded car type.
Correct answer: C
Explanation
The correct answer is C, as it combines binned latitude and longitude with one-hot encoded car type to capture city-specific relationships effectively. Option A uses individual features which may not capture interactions, while B lacks the necessary binned features for this context. Option D utilizes two feature crosses, but C's approach is more efficient for establishing the required relationships.