Ultimate access to all questions.
You register a model in an Azure Machine Learning workspace by running the following code:
from azureml.core import Model
model = Model.register(
workspace=ws,
model_name='classification-model',
model_path='model.pkl',
description='A classification model'
)
You are creating a scoring script to use in a real-time service for the model.
You need to write code in the scoring script to set the path of the registered model so that it can be loaded by the service. You include the necessary import statements.
Which code segment should you use?