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
Building
You can build locally with: python setup.py
License
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.3a1.tar.gz
(7.3 kB
view hashes)
Built Distribution
Close
Hashes for ServeIt-0.0.3a1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fee31ba9c392c8549943b50e44b990b79a16cef30ac0311374eb1d9b91885e7e |
|
MD5 | 809003c906710bb5ff4305a0857bd88e |
|
BLAKE2b-256 | fe044ed39b4a4af93cae44c15dffa03da43e6312cf50386824968777c5c6ef1f |