Charge Id - Deploying a ML.Net Model to Azure
In the previous post we built a machine learning model using ML.Net, in this post we will deploy the model to an Azure app and allow it to be used via a HTTP API Using the output model in zip format ‘vita-model-1.zip’ we can include this in our web application as an embedded resource or simply include the file for deployment. To use the file from a HTTP endpoint: Include the zip file in your deployment – embedded resource/content/read from blob storage etc.. Initialise the model as a singleton during application start up by using a file path or stream Call the model using the function PredictionModel.Predict(‘my data from which to predict’) Sample below that logs to Logz.io ...