asyncio-gcloud-ml-engine
Asyncio-based
Google Cloud Machine Learning Engine
Prediction & Training
Features
- asyncio: better use of your cpu idle time
- pep8 compliant: following best code standards
- tests: full tested to keep up-to-date on socketcluster
-
high-performance prediction: we try to use
aio-grpc
when possible
Example
from asyncio_ml_engine import MachineLearningClient
project = 'my-gcloud-project'
service_account = './myserviceaccount.json'
async def myfunc():
async with MachineLearningClient(project, service_account) as client:
prediction = await client.predict('mymodel', X)
You can find more examples in the examples/
subdirectory.
Installation
$ pip install asyncio-gcloud-ml-engine