lightmlrestapiΒΆ

Build status Build Status Windows https://circleci.com/gh/sdpython/lightmlrestapi/tree/master.svg?style=svg https://badge.fury.io/py/lightmlrestapi.svg MIT License Requirements Status https://codecov.io/github/sdpython/lightmlrestapi/coverage.svg?branch=master GitHub Issues Waffle Notebook Coverage

lightmlrestapi implements a light machine learning REST API based on falcon.

You can test a dummy wsgi server by running:

start_mlrestapi --name=dummy

And then query it with:

import requests
import ujson
features = ujson.dumps({'X': [0.1, 0.2]})
r = requests.post('http://127.0.0.1:8081', data=features)
print(r)
print(r.json())

It should return:

{'Y': [[0.4994216179, 0.4514893599, 0.0490890222]]}

The command line is described at cmd_start_mlrestapi_cmd.

Links: github, documentation, README, blog

Modules Functions Classes Methods l-staticmethods l-properties
Module Index Examples Search Page License Changes README
Index FAQ Notebooks Gallery   Statistics on code Unit Test Coverage