Machine learning prediction serving
Project description
ServeIt lets you deploy your models to a production-quality RESTful API for prediction serving 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
# provide the server with a model and tell it which
# 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 samples.
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.2a16.tar.gz
(7.1 kB
view hashes)
Built Distribution
Close
Hashes for ServeIt-0.0.2a16-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca78cd4e46a4f2876ce535760dc5bd4b3cfea9678d02399f32ec4d41cfd97cf2 |
|
MD5 | 20395acd157e98a65a6224f61bc421ec |
|
BLAKE2b-256 | 28e65fb31ae3e926e7ca30e253be0d4cb1528127166263edaf8d2cbca23e21c3 |