Warning
We’re planning to deprecate abeja.train
package in the future version.
Instead, the abeja.training package contains far more detailed new high-level
APIs. Furthermore, these classes provide more consistent and cleaner interface for developers.
ABEJA training library is SDK for python, which allows developers to create, get and delete training related resources.
High-level API is used trough following classes.
from abeja.train import Client
from abeja.train.statistics import Statistics as ABEJAStatistics
client = Client()
statistics = ABEJAStatistics(num_epochs=10, epoch=1)
statistics.add_stage(name=ABEJAStatistics.STAGE_TRAIN, accuracy=90.0, loss=0.10)
statistics.add_stage(name=ABEJAStatistics.STAGE_VALIDATION, accuracy=75.0, loss=0.07)
client.update_statistics(statistics)
method |
path |
|
---|---|---|
get |
/organizations/<organization_id>/training/definitions/<job_definition_name>/jobs/<training_job_id>/result |
|
post |
/organizations/<organization_id>/training/definitions/<job_definition_name>/jobs/<training_job_id>/statistics |
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.train 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> |
|
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> |
|
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 |