Integrate Trained Machine Learning Model into API in Just 15 mins

By Medium - 2020-12-14

Description

How to deploy a trained sentiment analysis machine learning model to a REST API using Microsoft ML.NET and ASP.NET Core, in just 15 mins.

Summary

  • How to deploy a trained sentiment analysis machine learning model to a REST API using Microsoft ML.NET and ASP.NET Core, in just 15 mins.
  • Note x is your single feature and is your data point, so the value of x will not be contained in the model artifacts.
  • ML NuGet package and also the relevant package for your algorithm used.
  • The “comment” is used to build an input for our sentiment analysis model, and the singleton instance of ConsumeModel, _consumeModel, is used for prediction.

 

Topics

  1. Machine_Learning (0.2)
  2. NLP (0.17)
  3. Backend (0.11)

Similar Articles

The Model’s Shipped; What Could Possibly go Wrong

By Medium - 2021-02-18

In our last post we took a broad look at model observability and the role it serves in the machine learning workflow. In particular, we discussed the promise of model observability & model monitoring…

Introduction to Machine Learning in C# with ML.NET

By Medium - 2020-05-27

When thinking of data science and machine learning, two programming languages, Python and R, immediately come to mind. These two languages have support for every common machine learning algorithm…

Time-Series Forecasting with Google BigQuery ML

By Medium - 2021-02-16

If you have worked with any kind of forecasting models, you will know how laborious it can be at times especially when trying to predict multiple variables. From identifying if a time-series is…