Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Google Professional Machine Learning Engineer Exam - Topic 6 Question 90 Discussion

Posted by Josphine on Sep 18, 2024 at 04:37 PM

You work at a gaming startup that has several terabytes of structured data in Cloud Storage. This data includes gameplay time data, user metadata, and game metadat

a. You want to build a model that recommends new games to users that requires the least amount of coding. What should you do?

Suggested Answer: B

The best option to build a game recommendation model with the least amount of coding is to use BigQuery ML, which allows you to create and execute machine learning models using standard SQL queries. BigQuery ML supports several types of models, including matrix factorization, which is a common technique for collaborative filtering-based recommendation systems. Matrix factorization models learn latent factors for users and items from the observed ratings, and then use them to predict the ratings for new user-item pairs. BigQuery ML provides a built-in function calledML.RECOMMENDthat can generate recommendations for a given user based on a trained matrix factorization model. To use BigQuery ML, you need to load the data in BigQuery, which is a serverless, scalable, and cost-effective data warehouse. You can use thebqcommand-line tool, the BigQuery API, or the Cloud Console to load data from Cloud Storage to BigQuery. Alternatively, you can use federated queries to query data directly from Cloud Storage without loading it to BigQuery, but this may incur additional costs and performance overhead. Option A is incorrect because BigQuery ML does not support Autoencoder models, which are a type of neural network that can learn compressed representations of the input data. Autoencoder models are not suitable for recommendation systems, as they do not capture the interactions between users and items. Option C is incorrect because using TensorFlow to train a two-tower model requires more coding than using BigQuery ML. A two-tower model is a type of neural network that learns embeddings for users and items separately, and then combines them with a dot product or a cosine similarity to compute the rating. TensorFlow is a low-level framework that requires you to define the model architecture, the loss function, the optimizer, the training loop, and the evaluation metrics. Moreover, you need to read the data from Cloud Storage to a Vertex AI Workbench notebook, which is an instance of JupyterLab that runs on a Google Cloud virtual machine. This may involve additional steps such as authentication, authorization, and data preprocessing. Option D is incorrect because using TensorFlow to train a matrix factorization model also requires more coding than using BigQuery ML. Although TensorFlow provides some high-level APIs such as Keras and TensorFlow Recommenders that can simplify the model development, you still need to handle the data loading and the model training and evaluation yourself. Furthermore, you need to read the data from Cloud Storage to a Vertex AI Workbench notebook, which may incur additional complexity and costs.Reference:

BigQuery ML documentation

Using matrix factorization with BigQuery ML

Recommendations AI documentation

Loading data into BigQuery

Querying data in Cloud Storage from BigQuery

Vertex AI Workbench documentation

TensorFlow documentation

TensorFlow Recommenders documentation


Get Premium Professional Machine Learning Engineer Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
31 comments · newest first
FE
Felix 11 months ago
Totally agree, matrix factorization is a classic for this!
NO
Norah 11 months ago
Wait, can TensorFlow really be less code than BigQuery ML?
VA
Vallie 11 months ago
Autoencoders? Not sure if that's the best fit for recommendations.
IL
Iluminada 11 months ago
I think matrix factorization is the way to go here.
TH
Thersa 12 months ago
BigQuery ML is super easy for quick models!
BR
Brandon 12 months ago
I feel like using TensorFlow might involve more coding than we want, so I’m leaning towards BigQuery ML.
DE
Devon 1 year ago
I practiced a similar question, and I think matrix factorization is a good choice for recommendations.
MA
Marilynn 1 year ago
I'm not entirely sure, but I think Autoencoders are more complex than what we need here.
GI
Gianna 1 year ago
I remember we discussed using BigQuery ML for simpler models, so maybe option B is the way to go?
CA
Carlton 1 year ago
I'm leaning towards option C - using a Vertex AI Workbench notebook and TensorFlow to train a two-tower model. That way I can have more control over the model architecture and feature engineering. But it might require more coding than the BigQuery ML options.
CI
Ciara 1 year ago
Hmm, I'm not sure which approach to take here. The question mentions structured data, so an autoencoder model could work, but matrix factorization might be more appropriate for a recommendation task. I'll need to think this through a bit more.
MI
Mila 1 year ago
This looks like a straightforward recommendation problem. I'd go with option B - using BigQuery ML to train a matrix factorization model. That seems like the simplest approach that requires the least amount of coding.
JO
Jonelle 1 year ago
Option D looks interesting, using a matrix factorization model in a Vertex AI Workbench notebook. That could give me the benefits of a more customized approach while still keeping the coding to a minimum. I'll have to research matrix factorization a bit more to see if that's the best fit.
ME
Melda 1 year ago
Hmm, I'm not sure about that. Using dynamic forms might work, but it could also get complicated, especially if the data requirements change in the future. I think the safest bet is to go with the classic approach of record types and page layouts. That way, we can easily maintain and update the solution as needed.
AM
Amira 2 years ago
I'm not sure, but I think option B could also work well since matrix factorization models are commonly used for recommendation systems.
TW
Twila 2 years ago
Haha, reading data to a Vertex AI notebook? What is this, the dark ages? BigQuery ML is where it's at, folks. B is the clear winner here.
NI
Nicolette 2 years ago
↳ replying to Twila
Let's keep it simple and effective with BigQuery ML. B all the way.
DO
Donte 2 years ago
↳ replying to Twila
Yeah, no need to complicate things. B is the clear winner.
TO
Tony 2 years ago
↳ replying to Twila
I agree, using BigQuery ML for a matrix factorization model is the most efficient.
CH
Chanel 2 years ago
↳ replying to Twila
BigQuery ML is definitely the way to go. B is the best choice.
CL
Clement 2 years ago
I'm surprised option A isn't even considered. Autoencoder models are great for extracting hidden features from complex data. But I guess BigQuery ML limits the model choices.
MA
Margot 2 years ago
↳ replying to Clement
C) Read data to a Vertex AI Workbench notebook. Use TensorFlow to train a two-tower model.
GA
Gaston 2 years ago
↳ replying to Clement
B) Load the data in BigQuery. Use BigQuery ML to train a matrix factorization model.
QU
Quentin 2 years ago
↳ replying to Clement
A) Load the data in BigQuery. Use BigQuery ML to train an Autoencoder model.
KR
Kristine 2 years ago
I disagree, I believe option C is better as using TensorFlow to train a two-tower model can provide more accurate recommendations.
MA
Malcom 2 years ago
Option B all the way! Matrix factorization is the way to go for a recommendation system with structured data. Minimal coding and BigQuery ML makes it a breeze.
AD
Adolph 2 years ago
↳ replying to Malcom
I think using BigQuery ML to train a matrix factorization model is the most efficient way to recommend new games to users.
NI
Nilsa 2 years ago
↳ replying to Malcom
It's great that BigQuery ML makes it easy to train a matrix factorization model with minimal coding.
LI
Linsey 2 years ago
↳ replying to Malcom
Matrix factorization is a powerful technique for making personalized recommendations.
LO
Lou 2 years ago
↳ replying to Malcom
I agree, Option B is definitely the best choice for building a recommendation system with structured data.
CY
Cyril 2 years ago
I think option A is the best choice because BigQuery ML can train an Autoencoder model with minimal coding.
0/2000 characters

Save Cancel