Giter VIP home page Giter VIP logo

mlnetaspnetakkasample's Introduction

ML.NET ASP.NET Core Web API Akka.NET Sample

This sample application utilizes Akka.NET actors to safely scale ML.NET predictions made via HTTP Requests in an ASP.NET Core Web API.

Prerequisites

This sample was build on an Ubuntu 18.04 PC but should work cross-platform on both Windows and Mac.

Get Code

In the command prompt enter the following command:

git clone https://github.com/lqdev/MlNetAspNetAkkaSample.git

Install Dependencies

Navigate to the WebApi directory by entering the following command into the command prompt:

cd WebApi
dotnet restore

Run Application

From the WebApi directory enter the following command in the command prompt:

dotnet run

Make A Prediction

Using a tool like Postman or Insomnia, make a POST HTTP request with Content-Type equal to application/json to the http://localhost:5000/api/Predict endpoint. For the body, use something like the snippet below:

{
  "SepalLength":3.3,
  "SepalWidth":1.6,
  "PetalLength":0.2,
  "PetalWidth":5.1
}

If successful, the response should look similar to the output below:

Iris-virginica

mlnetaspnetakkasample's People

Contributors

lqdev avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.