<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Dotnet Data-Science on Chris McKelt - Remembering Thoughts</title><link>https://blog.smarttechventures.au/tags/dotnet-data-science/</link><description>Recent content in Dotnet Data-Science on Chris McKelt - Remembering Thoughts</description><generator>Hugo -- 0.147.2</generator><language>en</language><lastBuildDate>Fri, 03 Aug 2018 00:00:00 +0800</lastBuildDate><atom:link href="https://blog.smarttechventures.au/tags/dotnet-data-science/index.xml" rel="self" type="application/rss+xml"/><item><title>Charge Id - Deploying a ML.Net Model to Azure</title><link>https://blog.smarttechventures.au/articles/posts/charge-id-deploying-to-a-ml-net-model-to-azure-part-6/</link><pubDate>Fri, 03 Aug 2018 00:00:00 +0800</pubDate><guid>https://blog.smarttechventures.au/articles/posts/charge-id-deploying-to-a-ml-net-model-to-azure-part-6/</guid><description>&lt;p>In the previous post we built a machine learning model using &lt;a href="http://dot.net/ml" target="_blank">ML.Net&lt;/a>, in this post we will deploy the model to an Azure app and allow it to be used via a HTTP API&lt;/p>
&lt;p>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.&lt;/p>
&lt;p>To use the file from a HTTP endpoint:&lt;/p>
&lt;ol>
&lt;li>Include the zip file in your deployment – embedded resource/content/read from blob storage etc..&lt;/li>
&lt;li>Initialise the model as a singleton during application start up by using a file path or stream&lt;/li>
&lt;li>Call the model using the function PredictionModel.Predict(‘my data from which to predict’)&lt;/li>
&lt;/ol>
&lt;p>Sample below that logs to &lt;a href="https://logz.io/" target="_blank">Logz.io&lt;/a>&lt;/p></description></item></channel></rss>