Machine learning prediction serving
Project description
ServeIt lets you serve model predictions and supplementary information from a RESTful API in one line of code. Current features include:
Model prediction serving
Supplementary information endpoint creation
User-provided input validation and exception handling
Configurable request and response logging (work in progress)
Installation: Python 2.7 and Python 3.6
Installation is easy with pip: pip install serveit
Usage:
Deploy your model to an API endpoint with one line of code:
from serveit.server import ModelServer
# initialize the server with a model and a method to use
# for predictions
ModelServer(clf, clf.predict).serve()
Then check out your new API:
curl -XPOST 'localhost:5000/predictions'\
-H "Content-Type: application/json"\
-d "[[5.6, 2.9, 3.6, 1.3], [4.4, 2.9, 1.4, 0.2], [5.5, 2.4, 3.8, 1.1], [5.0, 3.4, 1.5, 0.2], [5.7, 2.5, 5.0, 2.0]]"
# [1, 0, 1, 0, 2]
Please see the examples directory for additional usage.
Supported libraries
Scikit-Learn
Keras
Coming soon:
TensorFlow
PyTorch
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ServeIt-0.0.2.tar.gz
(7.1 kB
view hashes)
Built Distribution
Close
Hashes for ServeIt-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6de596b2b94c856a01f69b1d0bf87dee1f483c6a6fa36fc097c864c5edd0880 |
|
MD5 | 1d9bede1041f8912fb49a490c11e6dc2 |
|
BLAKE2b-256 | d57851bba7dd040a51729316e745b8334815f45b3967e7ecfbc421d8b9276631 |