exam questions

Exam Professional Machine Learning Engineer All Questions

View all questions & answers for the Professional Machine Learning Engineer exam

Exam Professional Machine Learning Engineer topic 1 question 98 discussion

Actual exam question from Google's Professional Machine Learning Engineer
Question #: 98
Topic #: 1
[All Professional Machine Learning Engineer Questions]

You built a custom ML model using scikit-learn. Training time is taking longer than expected. You decide to migrate your model to Vertex AI Training, and you want to improve the model’s training time. What should you try out first?

  • A. Migrate your model to TensorFlow, and train it using Vertex AI Training.
  • B. Train your model in a distributed mode using multiple Compute Engine VMs.
  • C. Train your model with DLVM images on Vertex AI, and ensure that your code utilizes NumPy and SciPy internal methods whenever possible.
  • D. Train your model using Vertex AI Training with GPUs.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
bc3f222
1 month, 2 weeks ago
Selected Answer: C
scikit-learn so Option D no good, Option C, training with DLVM images on Vertex AI and optimizing code with NumPy and SciPy, would be more appropriate in your scenario.
upvoted 1 times
...
desertlotus1211
2 months, 1 week ago
Selected Answer: B
Scikit-learn models are typically CPU-based, and many of their algorithms can benefit from parallelization when the workload is distributed
upvoted 1 times
...
rajshiv
4 months, 4 weeks ago
Selected Answer: D
DLVM are typically designed for deep learning workloads and do not provide as much benefit for scikit-learn training. Utilizing GPUs for acceleration is best, as scikit-learn can benefit from GPU-accelerated libraries.
upvoted 1 times
...
FireAtMe
5 months ago
Selected Answer: A
D is wrong. Not every model in scikit-learn need GPUs or gradients.
upvoted 1 times
FireAtMe
5 months ago
C , I chose the wrong number
upvoted 1 times
...
...
AB_C
5 months, 1 week ago
Selected Answer: D
GPU Acceleration: Scikit-learn can leverage GPUs for certain algorithms, especially those involving matrix operations, which are common in many machine learning models. GPUs excel at parallel processing, significantly reducing training time compared to CPUs. Vertex AI Training: Vertex AI Training makes it easy to use GPUs. You can specify the type and number of GPUs in your training job configuration, and Vertex AI handles the infrastructure setup. Minimal Code Changes: You might need to make minor adjustments to your code to ensure it utilizes the GPU, but generally, scikit-learn integrates well with GPUs.
upvoted 1 times
...
pico
1 year, 5 months ago
Selected Answer: D
Options B and C may also be relevant in certain scenarios, but they are generally more involved and might require additional considerations. Option B can be effective for large-scale training tasks, but it might add complexity and overhead. Option C could be helpful, but the impact on training time might not be as immediate and substantial as using GPUs.
upvoted 2 times
...
pico
1 year, 7 months ago
Selected Answer: D
D: Training your model with GPUs can provide a substantial speedup, especially for deep learning models or models that require a lot of computation. This option is likely to have a significant impact on training time. NOT C: While optimizing code can help improve training time to some extent, it may not provide as significant a speedup as the other options. However, it's still a good practice to optimize your code.
upvoted 1 times
...
andresvelasco
1 year, 7 months ago
Selected Answer: C
I dont think scikit-learn would support GPU or distribution, so based on "What should you try out first?" I think > C. Train your model with DLVM images on Vertex AI, and ensure that your code utilizes NumPy and SciPy internal methods whenever possible.
upvoted 3 times
...
blobfishtu
1 year, 9 months ago
why not B? Vertex AI provides the ability to distribute training tasks across multiple Compute Engine VMs, which can parallelize the workload and significantly reduce the training time for large datasets and complex models.
upvoted 4 times
...
PST21
1 year, 10 months ago
Option D is not the optimal choice for a scikit-learn model since scikit-learn does not have native GPU support. Option C, training with DLVM images on Vertex AI and optimizing code with NumPy and SciPy, would be more appropriate in your scenario.
upvoted 2 times
...
PST21
1 year, 10 months ago
Ans - D. quickest improvement in training time with minimal modifications to your existing scikit-learn model, trying out Option D and training your model using Vertex AI Training with GPUs is the recommended first step.
upvoted 1 times
...
Scipione_
1 year, 11 months ago
Selected Answer: C
A) Migrate your model to TensorFlow, and train it using Vertex AI Training. Not the first thing to do. B) Train your model in a distributed mode using multiple Compute Engine VMs. Could be not easy and fast. D)Train your model using Vertex AI Training with GPUs sklearn does not support GPUs Also, most of scikit-learn assumes data is in NumPy arrays or SciPy sparse matrices of a single numeric dtype. I choose C as the correct answer.
upvoted 4 times
...
M25
1 year, 11 months ago
Selected Answer: C
Went with C
upvoted 1 times
...
TNT87
2 years ago
Selected Answer: C
Answer C
upvoted 1 times
...
guilhermebutzke
2 years, 2 months ago
How about using sklearn's multi-core? Considering multiple jobs, could we choose item B? https://machinelearningmastery.com/multi-core-machine-learning-in-python/
upvoted 1 times
...
enghabeth
2 years, 2 months ago
Selected Answer: C
https://scikit-learn.org/stable/faq.html#will-you-add-gpu-support
upvoted 1 times
...
John_Pongthorn
2 years, 3 months ago
Selected Answer: C
C is correct absolutely https://console.cloud.google.com/marketplace/details/click-to-deploy-images/deeplearning?_ga=2.139171125.787784554.1674450530-1146240914.1659613735&project=quantum-hash-240404
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago