GraphGrid Python SDK
Project description
GraphGrid SDK
The GraphGrid Python SDK is a python-based software development kit that can be used to programmatically interact with GraphGrid services.
Currently, its primary purpose is to provide a flexible way to train NLP models on a variety of tasks.
This README covers setting up the SDK object and method overview. For further documentation and tutorials please visit https://docs.graphgrid.com/2.0/#/ to learn about the GraphGrid SDK and the GraphGrid CDP platform.
Set Up the SDK object
The first step in using the SDK is setting up the GraphGridSdk
python object.
# Setup bootstrap config
bootstrap_conf = SdkBootstrapConfig(
access_key='a3847750f486bd931de26c6e683b1dc4',
secret_key='81a62cea53883f4a163a96355d47656e',
url_base='localhost',
is_docker_context=False)
# Initialize the SDK
sdk = GraphGridSdk(bootstrap_conf)
You create a SdkBootstrapConfig
object that provides the basic configuration the SDK needs.
This example uses the default access_key
and secret_key
associated with GraphGrid CDP.
You can initialize your GraphGridSdk
object with that configuration and begin using the SDK.
For details on usage please see the docs on GraphGrid SDK Usage.
GraphGrid SDK Methods
There are currently seven SDK methods available for use:
Method | Description |
---|---|
nmt_train | Kick off training job |
nmt_status | Status and results of a training job |
job_run | Kick off a custom job |
job_status | Status of a custom job |
save_dataset | Save a dataset for training |
promote_model | Promote an NLP model, swapping it in for use |
nmt_train_pipeline | Kick off NLP model training pipeline |
The nmt_train
and nmt_status
methods are provided to trigger, monitor, and retrieve results from a nlp-model-training
job run.
In contrast, the methods job_run
and job_status
are provided to trigger and monitor custom jobs.
The nmt_train_pipeline
method is specifically for kicking off NLP model training pipeline, it
runs training jobs, monitors them, and can promote the newly trained models.
For details on specific methods please see the docs on GraphGrid SDK Method Reference.
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 graphgrid-sdk-2.0.1.tar.gz
.
File metadata
- Download URL: graphgrid-sdk-2.0.1.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 710c6528e169f64d90e4c7373b5be904b43a2938a4e87fb7dc708262bd3b4893 |
|
MD5 | acd3c8dcebc07a6401dd158244b9e0b2 |
|
BLAKE2b-256 | c3b6e6a55ca604aa8969c7bcc60470bce2baf8d4aba4cf274c84988a170b20af |
File details
Details for the file graphgrid_sdk-2.0.1-py3-none-any.whl
.
File metadata
- Download URL: graphgrid_sdk-2.0.1-py3-none-any.whl
- Upload date:
- Size: 21.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe4ca597b4ebd10358d5e46dc2483e16b4a2d1cafa3ecdfdaae33597876beee1 |
|
MD5 | c2bb4afdc08ee9add2764efb632a11e9 |
|
BLAKE2b-256 | 610e88c4b35462623c2d1161116d0b2fd2d0a29c0aa13e3bb77d0e327dde6677 |