DP-100 · Question #205
You run an experiment that uses an AutoMLConfig class to define an automated machine learning task with a maximum of ten model training iterations. The task will attempt to find the best performing…
The correct answer is D. best_model = automl_run.get_output()[1]. The get_output() method on an AutoML run returns a tuple of (best_run, fitted_model). Using index [1] retrieves the actual fitted model object ready for use or registration. The other options return different things: get_details() (A) returns a dictionary of run metadata and…
Question
Options
- Abest_model = automl_run.get_details()
- Bbest_model = automl_run.get_metrics()
- Cbest_model = automl_run.get_file_names()[1]
- Dbest_model = automl_run.get_output()[1]
How the community answered
(54 responses)- A2% (1)
- B4% (2)
- C7% (4)
- D87% (47)
Explanation
The get_output() method on an AutoML run returns a tuple of (best_run, fitted_model). Using index [1] retrieves the actual fitted model object ready for use or registration. The other options return different things: get_details() (A) returns a dictionary of run metadata and configuration; get_metrics() (B) returns a dictionary of performance metrics like accuracy and AUC; get_file_names() (C) returns a list of output file paths stored by the run, not the model object itself. Only get_output()[1] directly returns the best fitted model.
Topics
Community Discussion
No community discussion yet for this question.