Consuming Azure ML experiment web service using Visual Studio

As I was working on Student Churn Prediction model using Azure Machine Learning Services. My goal was to consume a Web service using a CSV as input file to score results in our C# Application.

To achieve this goal, we need to get return predictions results to the application in real time. To connect to a Machine Learning real-time endpoint, the following NuGet packages must be installed:

  • Microsoft.AspNet.WebApi.Client
  • NewtonsoftJson

Next, we will import a CSV as our input file to score results in real-time.

blog1 - Consuming Azure ML experiment web service using Visual Studio

Now, we need to pass input data variables to our input schema to score results.

blog2 - Consuming Azure ML experiment web service using Visual Studio

Next, we need to call the rest endpoint for the web service and convert my input schema in json form.

blog3 - Consuming Azure ML experiment web service using Visual Studio

In the last step we will be using Power Bi to get some useful insight using our output data.

blog4 - Consuming Azure ML experiment web service using Visual Studio

I hope you found this blog post helpful. If you have any questions, please feel free to contact info@kaispe.com.

 

Leave a Reply

avatar
  Subscribe  
Notify of