ABEJA training library is SDK for python, which allows developers to create, get and delete training related resources.
High-level API is used through following classes.
Client
JobDefinition
JobDefinition.archived
JobDefinition.created_at
JobDefinition.from_response()
JobDefinition.job_definition_id
JobDefinition.job_definition_versions()
JobDefinition.jobs()
JobDefinition.model_count
JobDefinition.models()
JobDefinition.modified_at
JobDefinition.name
JobDefinition.notebook_count
JobDefinition.organization_id
JobDefinition.tensorboard_count
JobDefinition.version_count
JobDefinition.versions
JobDefinitionVersion
JobDefinitionVersion.archived
JobDefinitionVersion.created_at
JobDefinitionVersion.description
JobDefinitionVersion.environment
JobDefinitionVersion.from_response()
JobDefinitionVersion.handler
JobDefinitionVersion.image
JobDefinitionVersion.job_definition
JobDefinitionVersion.job_definition_id
JobDefinitionVersion.job_definition_version_id
JobDefinitionVersion.modified_at
JobDefinitionVersion.organization_id
Job
Job.archived
Job.completion_time
Job.created_at
Job.creator
Job.datasets
Job.description
Job.environment
Job.exec_env
Job.from_response()
Job.instance_type
Job.job_definition
Job.job_definition_id
Job.job_definition_version
Job.job_definition_version_id
Job.job_id
Job.modified_at
Job.organization_id
Job.start_time
Job.statistics
Job.status
Job.status_message
JobDefinitionVersions
JobDefinitionVersions.archive()
JobDefinitionVersions.create()
JobDefinitionVersions.delete()
JobDefinitionVersions.get()
JobDefinitionVersions.job_definition_id
JobDefinitionVersions.job_definition_name
JobDefinitionVersions.list()
JobDefinitionVersions.organization_id
JobDefinitionVersions.unarchive()
JobDefinitionVersions.update()
from abeja.training import Client, job_status
client = Client()
adapter = client.job_definitions()
definition = adapter.get('flower-classification')
for job in definition.jobs().list():
if job.status == job_status.COMPLETE:
print('Job {} was completed!', job.job_id)
Low-Level API directly accesses the API endpoint.
APIClient
APIClient.archive_training_job()
APIClient.archive_training_job_definition()
APIClient.archive_training_job_definition_version()
APIClient.archive_training_model()
APIClient.create_training_job()
APIClient.create_training_job_definition()
APIClient.create_training_job_definition_version()
APIClient.create_training_job_definition_version_native_api()
APIClient.create_training_model()
APIClient.delete_training_job_definition()
APIClient.delete_training_job_definition_version()
APIClient.download_training_model()
APIClient.get_training_job()
APIClient.get_training_job_definition()
APIClient.get_training_job_definition_version()
APIClient.get_training_job_definition_versions()
APIClient.get_training_job_definitions()
APIClient.get_training_jobs()
APIClient.get_training_model()
APIClient.get_training_models()
APIClient.get_training_result()
APIClient.patch_training_job_definition_version()
APIClient.patch_training_model()
APIClient.stop_training_job()
APIClient.unarchive_training_job()
APIClient.unarchive_training_job_definition()
APIClient.unarchive_training_job_definition_version()
APIClient.unarchive_training_model()
APIClient.update_statistics()
from abeja.training import APIClient
api = APIClient()
job_definitions = api.get_training_job_definitions(organization_id)
method |
path |
|
---|---|---|
post |
/organizations/<organization_id>/training/definitions |
|
get |
/organizations/<organization_id>/training/definitions |
|
get |
/organizations/<organization_id>/training/definitions/<job_definition_name> |
|
post |
/organizations/<organization_id>/training/definitions/<job_definition_name>/archive |
|
post |
/organizations/<organization_id>/training/definitions/<job_definition_name>/unarchive |
|
delete |
/organizations/<organization_id>/training/definitions/<job_definition_name> |
|
post |
/organizations/<organization_id>/training/definitions/<job_definition_name>/versions |
|
get |
/organizations/<organization_id>/training/definitions/<job_definition_name>/versions |
|
get |
/organizations/<organization_id>/training/definitions/<job_definition_name>/versions/<version_id> |
|
patch |
/organizations/<organization_id>/training/definitions/<job_definition_name>/versions/<version_id> |
|
delete |
/organizations/<organization_id>/training/definitions/<job_definition_name>/versions/<version_id> |
|
post |
/organizations/<organization_id>/training/definitions/<job_definition_name>/versions/<version_id>/jobs |
|
get |
/organizations/<organization_id>/training/definitions/<job_definition_name>/jobs |
|
get |
/organizations/<organization_id>/training/definitions/<job_definition_name>/jobs/<training_job_id> |
|
post |
/organizations/<organization_id>/training/definitions/<job_definition_name>/jobs/<training_job_id>/stop |
|
get |
/organizations/<organization_id>/training/definitions/<job_definition_name>/jobs/<training_job_id>/result |
|
delete |
/organizations/<organization_id>/training/definitions/<job_definition_name>/jobs/<training_job_id>/statistics |
|
get |
/organizations/<organization_id>/training/definitions/<job_definition_name>/models |
|
post |
/organizations/<organization_id>/training/definitions/<job_definition_name>/models |
|
get |
/organizations/<organization_id>/training/definitions/<job_definition_name>/models/<model_id> |
|
patch |
/organizations/<organization_id>/training/definitions/<job_definition_name>/models/<model_id> |
|
get |
/organizations/<organization_id>/training/definitions/<job_definition_name>/models/<model_id>/download |
|
post |
/organizations/<organization_id>/training/definitions/<job_definition_name>/models/<model_id>/archive |
|
post |
/organizations/<organization_id>/training/definitions/<job_definition_name>/models/<model_id>/unarchive |