QuestionQ90

VerifiedAdvanced MLflow Usage

A data scientist has created a scikit-learn random forest model but has not yet logged the model with MLflow. They have created a model signature, model_signature, and several example input records, input_records.

Which code block can be used to log all this information?

Explanation

mlflow.sklearn.log_model accepts both a signature argument for a ModelSignature and an input_example argument for valid sample inputs, allowing the scikit-learn model, its signature, and example records to be logged together as one MLflow model artifact.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!