Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Find Azure ML Experiment based on Deployed Web Service

I have a list of ML experiments which I have created in Azure Machine Learning Studio. I have deployed them as web services (the new version, not classic).

How can I go into Azure Machine Learning Web Services, click on a web service (which was deployed from an experiment), then navigate back to the experiment / predictive model which feeds it?

The only link I can find between the two is by updating the web service from the predictive experiment, which then confirms what the web service is. I can see that the "ExperimentId" is a GUID in the URL when in the experiment and the web service, so hopefully this is possible.

My reasoning is that relying on matching naming conventions, etc., to select the appropriate model to update is subject to human error.

like image 848
Hamilton Blake Avatar asked Mar 13 '17 14:03

Hamilton Blake


People also ask

When creating a Web service using Azure machine learning what type of web service do you select?

Web services deployed by Azure Machine Learning only support TLS version 1.2. When creating a client application, make sure that it supports this version. For more information, see Use TLS to secure a web service through Azure Machine Learning.

What is experiment in Azureml?

An Azure Machine Learning experiment represent the collection of trials used to validate a user's hypothesis. In Azure Machine Learning, an experiment is represented by the Experiment class and a trial is represented by the Run class.


1 Answers

The new web service does not store any information about the experiment or workspace that was deployed (not all new web services are deployed from an experiment).

Here are the options available to track the relationship between the experiment and a new web service.

last deployment

However, the experiment keeps track of the last new web service that was deployed from the experiment. each deployment to a new web service overwrites this value.

The value is stored in the experiment graph. One way to get the graph is to use the powershell module amlps

Export-AmlExperimentGraph -ExperimentId <Experiment Id> -OutputFile e.json

e.json

{
"ExperimentId":"<Experiment Id>",
// . . .
"WebService":{
// . . .
"ArmWebServiceId":"<Arm Id>"
},
// . . . 
}

azure resource tags

The tags feature for Azure resources is supported by the new web services. Setting a tag on the web service programmatically, with powershell or via the azure portal UX can be used to store a reference to the experiment on the new web service.

like image 110
Kirk Shoop Avatar answered Sep 29 '22 15:09

Kirk Shoop