An implementation of Google Cloud ML Engine Prediction using aiohttp.
Project description
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
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
Built Distribution
Close
Hashes for asyncio-gcloud-ml-engine-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95e29b3370bdb499bf732eb45892a8ce3b6e40fedf557a218edffe8f035a1d6a |
|
MD5 | 6633e7aa375c9870bc762e3f33e82ad1 |
|
BLAKE2b-256 | 582a80f92933b996c42f6da9bf3411b7ea16b28e1a53c2bb64edcab85b77a75c |
Close
Hashes for asyncio_gcloud_ml_engine-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 569a98633e84e4f1c1c63644f5c6156426f51e78c5d0362da9716d65f9e6f494 |
|
MD5 | 0e8b73c7b5ed1a2eda855fcba3bc7d89 |
|
BLAKE2b-256 | c94254296686ac5df8e621e93a44711257bd7b5c776f6827ac2c38b4e5abd5a6 |