Learn if grid sampling supports early termination and continuous hyperparameters for tuning ML models in Azure. Essential knowledge for the DP-100 certification exam.
Table of Contents
Question
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You have an Azure Machine Learning workspace.
You plan to tune model hyperparameters by using a sweep job.
You need to find a sampling method that supports early termination of low-performance jobs and continuous hyperparameters.
Solution: Use the grid sampling method over the hyperparameter space.
Does the solution meet the goal?
A. Yes
B. No
Answer
B. No
Explanation
No, using the grid sampling method over the hyperparameter space does not meet the stated goals.
Grid sampling is an exhaustive search over all possible combinations of hyperparameter values. It does not support early termination of low-performance runs. Once a grid sampling sweep is started, it will train a model with every hyperparameter configuration in the predefined grid, regardless of performance.
Additionally, grid sampling only supports discrete hyperparameters. It cannot be used with continuous hyperparameter ranges.
To meet the requirement of early termination for low-performance jobs and support for continuous hyperparameters, Bayesian sampling would be a more appropriate choice. Bayesian sampling leverages information from previous runs to determine the next set of hyperparameter values to explore. It can identify and terminate low-performance runs early. It also natively supports both discrete and continuous hyperparameter spaces.
So in summary, grid sampling does not satisfy the criteria, but Bayesian sampling would be a viable option for the given scenario in the context of the DP-100 certification exam.
Microsoft DP-100 certification exam practice question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the Microsoft DP-100 exam and earn Microsoft DP-100 certification.