Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Certified Machine Learning Professional All Questions

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

Exam Certified Machine Learning Professional topic 1 question 52 discussion

Actual exam question from Databricks's Certified Machine Learning Professional
Question #: 52
Topic #: 1
[All Certified Machine Learning Professional Questions]

A machine learning engineer wants to log and deploy a model as an MLflow pyfunc model. They have custom preprocessing that needs to be completed on feature variables prior to fitting the model or computing predictions using that model. They decide to wrap this preprocessing in a custom model class ModelWithPreprocess, where the preprocessing is performed when calling fit and when calling predict. They then log the fitted model of the ModelWithPreprocess class as a pyfunc model.
Which of the following is a benefit of this approach when loading the logged pyfunc model for downstream deployment?

  • A. The pyfunc model can be used to deploy models in a parallelizable fashion
  • B. The same preprocessing logic will automatically be applied when calling fit
  • C. The same preprocessing logic will automatically be applied when calling predict
  • D. This approach has no impact when loading the logged pyfunc model for downstream deployment
  • E. There is no longer a need for pipeline-like machine learning objects
Show Suggested Answer Hide Answer
Suggested Answer: E 🗳️

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
hugodscarvalho
10 months ago
Selected Answer: C
Encapsulating the preprocessing logic within the custom model class, it ensures that the preprocessing steps are consistently applied both during model training and during prediction. When the pyfunc model is loaded for downstream deployment, the preprocessing logic is already integrated into the model, simplifying the deployment process and ensuring consistency in preprocessing across training and inference.
upvoted 1 times
...
trendy01
11 months ago
Selected Answer: C
C. The same preprocessing logic will automatically be applied when calling predict
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 ...