exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 3 question 156 discussion

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

DRAG DROP
-

You manage an Azure Machine Learning workspace named workspace1 and a Data Science Virtual Machine (DSVM) named DSMV1.

You must run an experiment on DSMV1 by using a Jupyter notebook and Python SDK v2 code. You must store metrics and artifacts in workspace1. You start by creating Python SDK v2 code to import all required packages.

You need to implement the Python SDK v2 code to store metrics and artifacts in workspace1.

Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

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
phdykd
Highly Voted 1 year, 3 months ago
Instantiate an object of the MLClient class. In the Azure Machine Learning Python SDK, the MLClient class is used to manage Azure Machine Learning resources. You can use it to access your workspaces, experiments, and other resources. Retrieve the tracking URI of workspace1. The tracking URI is used by MLflow to log metrics and artifacts for a specific experiment. You can get this URI from the workspace object. Set the MLflow tracking URI. MLflow is a platform for managing the machine learning lifecycle. It provides a set of APIs and services that you can use to log and retrieve metrics and artifacts from your machine learning experiments. After getting the tracking URI from the workspace, you should set it as the tracking URI for MLflow.
upvoted 11 times
...
evangelist
Most Recent 4 months, 3 weeks ago
from azure.ai.ml import MLClient from azure.identity import DefaultAzureCredential # Step 1: Instantiate an object of the MLClient class credential = DefaultAzureCredential() ml_client = MLClient(credential, subscription_id, resource_group, workspace_name) # Step 2: Retrieve the tracking URI of workspace1 tracking_uri = ml_client.workspaces.get(workspace_name).mlflow_tracking_uri # Step 3: Set the MLflow tracking URI import mlflow mlflow.set_tracking_uri(tracking_uri)
upvoted 4 times
...
sl_mslconsulting
5 months, 1 week ago
this link should provide all the inform you need to answer this question. https://learn.microsoft.com/en-us/azure/machine-learning/how-to-use-mlflow-configure-tracking?view=azureml-api-2&tabs=python%2Cmlflow
upvoted 1 times
...
PI_Team
10 months, 4 weeks ago
from azure.ai.ml import MLClient from azure.identity import DefaultAzureCredential import mlflow # Define your parameters subscription_id = "<your-subscription-id>" resource_group_name = "<your-resource-group-name>" workspace_name = "<your-workspace-name>" # Instantiate the MLClient class ml_client = MLClient( credential=DefaultAzureCredential(), subscription_id=subscription_id, resource_group_name=resource_group_name, workspace_name=workspace_name ) # Retrieve the tracking URI of workspace1 tracking_uri = ml_client.get_tracking_uri() # Set the MLflow tracking URI mlflow.set_tracking_uri(tracking_uri)
upvoted 3 times
...
barb4ever2002
1 year, 4 months ago
chat gtp: Retrieve the tracking URI of workspace1: To interact with the MLflow server in workspace1, you need to retrieve the tracking URI. This can be done using the Azure Machine Learning SDK to access the workspace and retrieve the necessary information. Set the MLflow tracking URI: Once you have the tracking URI of workspace1, you need to set it as the tracking URI for MLflow. This ensures that all metrics and artifacts are logged to the correct MLflow server. Instantiate an object of the MLflow Client class: After setting the tracking URI, you can instantiate an object of the MLflow Client class. This allows you to interact with the MLflow server and log metrics and artifacts from your code.
upvoted 1 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago