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.2a15.tar.gz
(7.1 kB
view hashes)
Built Distribution
Close
Hashes for ServeIt-0.0.2a15-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3cb37bb9229f4d58d56ce514f5a32c1b454fbecd3c47cf00cca85ee011fc69dc |
|
MD5 | 0a0396de4448323ce90d85e14f3bcde6 |
|
BLAKE2b-256 | d10a74683c4ad5131c6f23faa9b3703a6c783cff6b32b6d7006b978615538927 |