Professional Machine Learning Engineer Exam QuestionsBrowse all questions from this exam

Professional Machine Learning Engineer Exam - Question 43


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?

Show Answer
Correct Answer: CD

To train city-specific relationships between car type and number of sales, the best approach would involve using feature crosses between the geographical coordinates and car types. Given that latitude and longitude together uniquely define a city location, binning these values and then crossing them separately with the one-hot encoded car type allows for the model to learn specific patterns for each car type in relation to each city’s location. Binning helps manage the variation and scales better, while crossing allows for interactions between the features. Hence, using 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 makes logical sense.

Discussion

11 comments
Sign in to comment
Paul_DiracOption: C
Jul 31, 2021

C https://developers.google.com/machine-learning/crash-course/feature-crosses/check-your-understanding

ebinv2Option: C
Jul 12, 2021

C should be the answer

ralf_ccOption: D
Jul 9, 2021

D - https://developers.google.com/machine-learning/crash-course/feature-crosses/video-lecture

jk73
Sep 20, 2021

Cannot be D, Despite Binning is a good idea because it enables the model to learn nonlinear relationships within a single feature; separate latitude and longitude in different feature crosses is not a good one, this separation will prevent the model from learning city-specific sales. A city is the conjunction of latitude and longitude. In that order of Ideas Crossing binned latitude with binned longitude enables the model to learn city-specific effects of car type. I will go for C, https://developers.google.com/machine-learning/crash-course/feature-crosses/check-your-understanding

george_ognyanov
Oct 9, 2021

Damn that was a good explanation. Thank you for writing it out.

A4MOption: C
Jan 26, 2022

C - Answer when doing feature cross the features need to be binned

Mohamed_MossadOption: C
Jun 11, 2022

https://developers.google.com/machine-learning/crash-course/feature-crosses/video-lecture

NamitSehgalOption: C
Jan 4, 2022

I got with C

MK_AhsanOption: C
Jan 10, 2022

https://developers.google.com/machine-learning/crash-course/feature-crosses/check-your-understanding Answer C: It needs a feature cross to obtain one feature.

Sum_SumOption: C
Nov 15, 2023

C - everything else is madness

rigori
Jul 4, 2024

creating this cross feature is madness from explainability standpoint

ramen_loverOption: D
Nov 7, 2021

"element-wise product" sounds like we are not using a feature cross but artificially creating a new column whose values is the "element-wise product" of other column values...; i.e., (1, 2, 3) => 1 * 2 * 3 = 6. I am not a native English speaker; thus, I might misunderstand the sentence.

M25Option: C
May 9, 2023

Went with C

PhilipKokuOption: C
Jun 6, 2024

C) one feature