exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 3 question 164 discussion

Actual exam question from Microsoft's DP-100
Question #: 164
Topic #: 3
[All DP-100 Questions]

HOTSPOT
-

You use Azure Machine Learning to train a machine learning model.

You use the following training script in Python to perform logging:

import mlflow
mlflow.log_metric(“accuracy", float(vel_accuracy))

You must use a Python script to define a sweep job.

You need to provide the primary metric and goal you want hyperparameter tuning to optimize.

How should you complete the Python script? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Show Suggested Answer Hide Answer
Suggested Answer:

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
damaldon
11 months, 1 week ago
from azure.ai.ml.sweep import Uniform, Choice command_job_for_sweep = command_job( learning_rate=Uniform(min_value=0.05, max_value=0.1), batch_size=Choice(values=[16, 32, 64, 128]), ) sweep_job = command_job_for_sweep.sweep( compute="cpu-cluster", sampling_algorithm = "bayesian", primary_metric="accuracy", goal="Maximize", )
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...