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 22 discussion

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

A data scientist has developed a scikit-learn random forest model model, but they have not yet logged model with MLflow. They want to obtain the input schema and the output schema of the model so they can document what type of data is expected as input.
Which of the following MLflow operations can be used to perform this task?

  • A. mlflow.models.schema.infer_schema
  • B. mlflow.models.signature.infer_signature
  • C. mlflow.models.Model.get_input_schema
  • D. mlflow.models.Model.signature
  • E. There is no way to obtain the input schema and the output schema of an unlogged model.
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: B
The correct import statement would be: 'from mlflow.models import infer_signature.' I'm choosing B since it contains the actual method name infer_signature.
upvoted 1 times
...
GVR76
11 months ago
The correct answer is B. mlflow.models.signature.infer_signature. Here's why the other options are incorrect: A. mlflow.models.schema.infer_schema: This function is for inferring schema from data, not from models. C. mlflow.models.Model.get_input_schema: This method only works for models that have already been logged with MLflow. D. mlflow.models.Model.signature: This method also requires a logged model to access the signature. E. There is no way to obtain the input schema and the output schema of an unlogged model: This is incorrect; mlflow.models.signature.infer_signature can be used for unlogged models.
upvoted 2 times
...
mozuca
11 months ago
I think it is: There is no way to obtain the input schema and the output schema of an unlogged model
upvoted 1 times
...
akssha74
11 months, 1 week ago
Any questions so far from this guide?
upvoted 1 times
...
BokNinja
11 months, 2 weeks ago
The correct answer is B. mlflow.models.signature.infer_signature. The mlflow.models.signature.infer_signature function can be used to infer an MLflow model signature, which includes the input schema and the output schema of the model. This function takes as input the model’s training data (or a sample of it) and optionally the model’s labels, and returns a ModelSignature object that contains the input and output schema of the model.
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 ...