Giter Site home page Giter Site logo

ml-api's Introduction

Requirements

Poetry package >= 1.4

Run

Via poetry

$ cd ./src
$ poetry install
$ poetry run uvicorn main:app --reload --host 0.0.0.0 --port 8000

Via Docker

$ docker-compose up

Usage

http://81.200.147.126:8000/ - temporary VPS where you can try this API out.
The service uses FastApi as a REST handler so navigate to /docs for further exploration.

Request-Response example:

Request:

curl -X 'POST' \
  'http://81.200.147.126:8000/predict' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "SkillFactory_Id": 1,
  "BirthDate": "1988-07-21",
  "education": "Высшее - специалист",
  "employment_status": "Работаю по найму полный рабочий день/служу",
  "Value": "9 - 10 лет",
  "JobStartDate": "2013-09-01",
  "Position": "начальник п",
  "MonthProfit": 180000,
  "MonthExpense": 90000,
  "Gender": 0,
  "Family_status": "Никогда в браке не состоял(а)",
  "ChildCount": 0,
  "SNILS": 0,
  "Merch_code": 77,
  "Loan_amount": 137000,
  "Loan_term": 18,
  "Goods_category": "Furniture"
}

Response:

{
  "Prediction": [
    {
      "BankA_decision": 0.9749183655,
      "BankB_decision": 0.849627912,
      "BankC_decision": 0.9924119711,
      "BankD_decision": 0.9652436972,
      "BankE_decision": 0.2378726006
    }
  ]
}

ml-api's People

Contributors

modernpacifist avatar

Watchers

 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.