How should you complete the code segment?

Posted by: Pdfprep Category: DP-100 Tags: , ,

HOTSPOT

A coworker registers a datastore in a Machine Learning services workspace by using the following code:

You need to write code to access the datastore from a notebook.

How should you complete the code segment? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

Answer:

Explanation:

Box 1: DataStore

To get a specific datastore registered in the current workspace, use the get() static method on the

Datastore class:

# Get a named datastore from the current workspace

datastore = Datastore.get(ws, datastore_name=’your datastore name’)

Box 2: ws

Box 3: demo_datastore

Reference: https://docs.microsoft.com/en-us/azure/machine-learning/how-to-access-data

Leave a Reply

Your email address will not be published.