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 model based on a metric named accuracy.
You submit the experiment with the following code:
You need to create Python code that returns the best model that is generated by the automated machine learning task.
Which code segment should you use?
A . best_model = automl_run.get_details()
B . best_model = automl_run.get_output()[1]
C . best_model = automl_run.get_file_names()[1]
D . best_model = automl_run.get_metrics()
Answer: B
Explanation:
The get_output method returns the best run and the fitted model.
Reference: https://notebooks.azure.com/azureml/projects/azureml-getting-started/html/how-to-use-azureml/automated-machine-learning/classification/auto-ml-classification.ipynb
Leave a Reply