hiexam
databricks · Certified-Machine-Learning-Professional · Q427 · multiple_choice · topic_1

A data scientist has developed and logged a scikit-learn random forest model model, and then they ended their Spark ses…

A data scientist has developed and logged a scikit-learn random forest model model, and then they ended their Spark session and terminated their cluster. After starting a new cluster, they want to review the feature_importances_ of the original model object. Which of the following lines of code can be used to restore the model object so that feature_importances_ is available?
  • A.mlflow.load_model(model_uri)
  • B.client.list_artifacts(run_id)["feature-importances.csv"]
  • C.mlflow.sklearn.load_model(model_uri)
  • D.This can only be viewed in the MLflow Experiments UI
  • E.client.pyfunc.load_model(model_uri)
Explanation
Selected Answer: C C. mlflow.sklearn.load_model(model_uri) for two different case, write different code 1. sklean : mlflow.sklearn.load_model(model_uri) 2. xgboost : mlflow.xgboost.load_model(model_uri)

Reference: examtopics_top_comment

Practice with progress tracking

Sign in to track wrong answers, get spaced-repetition reminders, and run timed exam mode.