Very much a work in progress Python Wrapper for the Einstein Predictive Vision API service - recently added methods to support Language Intent API.
pip install EinsteinVisionfrom EinsteinVision.EinsteinVision import EinsteinVisionService
genius = EinsteinVisionService(email='<your_username@email.com>', pem_file='<pem file>')
genius.get_token()
r = genius.get_datasets_info()
# requests object
r.json()2017-01-11 At the moment you can use this to:
- Read a .pem file (remember you can copy-paste your primary key into a file and name it .pem)
- Generate an Auth Token
- Send an image URL and a modelId (GeneralImageClassifier if you want) and get a prediction
- Upload an image file as base64 for prediction
- Create a dataset from an accessible zip url
- Train a model given a dataset id
- Check on status of training
- Parse the output of RectLabel (a json file per picture) into a csv file to train Object Detection
- Create a Language Intent dataset
- Train a Language Intent model
- Get predictions on a Language Intent model
- Apparently the developer behind RectLabel decided to remove the functionality to output data in JSON (?) so I have re-redeveloped the same functionality to take into the account the XML output, prefixed in XML_