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
File details
Details for the file asyncio-gcloud-ml-engine-0.1.2.tar.gz
.
File metadata
- Download URL: asyncio-gcloud-ml-engine-0.1.2.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f7ac1cf8139d8cf652913a8008f302069cab4bc1d9964294427984b26fbc7b2 |
|
MD5 | 46914382d84d299e8c748c5a9b5bd9d9 |
|
BLAKE2b-256 | e1ff65b32d584a2f8311f9cff278b5d606867ed4c7b3f0ceb4887526ee84caec |
File details
Details for the file asyncio_gcloud_ml_engine-0.1.2-py2.py3-none-any.whl
.
File metadata
- Download URL: asyncio_gcloud_ml_engine-0.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dda16e356adfa4adf7bf49977b89946d45be7f2a2bb30664b95d1036e905c2e0 |
|
MD5 | 81e1bf70685dd26bbc48fbd857dcf6f6 |
|
BLAKE2b-256 | e455d75b2cad78cac4d8a8f015d53037c163032ee2e6838c27bf0baa13a3a1c0 |