Machine learning prediction serving
Project description
ServeIt lets you deploy your models to a RESTful API for prediction serving in one line of code. Current features include:
Model prediction serving
Supplementary information endpoint creation
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 a production-quality API with one line of code:
from serveit.sklearn_server import SklearnServer
# provide the server with a model and tell it which
# method to use for predictions
SklearnServer(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
Coming soon:
TensorFlow
Keras
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.2a12.tar.gz
(8.4 kB
view hashes)
Built Distribution
Close
Hashes for ServeIt-0.0.2a12-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07be53b50e3a45acbb0d7a3e938cce0ac7e35b91f62a4c83d8d6fc8b1c22978e |
|
MD5 | 5d3fbb80d8a76b94e904251af8e92c8a |
|
BLAKE2b-256 | 264dba6b502ffd2b5bbc760bb1e4f4c22a951faba86237633a087be8dc970350 |