Queries the training progress and status of a model.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation uses only the common request headers. For more information, see Common request parameters.

Request syntax

GET /v4/openapi/app-groups/[appGroupIdentity]/algorithm/models/[modelName]/progress HTTP/1.1

Request parameters

Parameter Type Position Required Example Description
appGroupIdentity String Path Yes group_name

The name of the application.

modelName String Path Yes model_name

The name of the model.

Response parameters

Parameter Type Example Description
requestId String F5099063-6B86-F398-D843-905F9EFB683A

The ID of the request.

result Struct

The progress of the training.

progress Integer 0

The progress of the training, in percentage.

status String train_init

The status of the training. Valid values:

  • train_init: The model is to be trained.
  • train_pending: The model is being trained.
  • validate_failed: A data exception occurs during the model training.
  • train_failed: The model training failed.
  • train_bad_model: The model is trained but failed to pass the training.
  • train_success: The model training succeeded.

Examples

Sample requests

GET /v4/openapi/app-groups/my_app/algorithm/models/DemoModelName/progress

Sample success responses

XML format

<requestId>F5099063-6B86-F398-D843-905F9EFB683A</requestId>
<result>
    <progress>0</progress>
    <status>train_init</status>
</result>

JSON format

{
    "requestId": "F5099063-6B86-F398-D843-905F9EFB683A",
    "result": {
        "progress": 0,
        "status": "train_init"
    }
}

Error codes

For a list of error codes, visit the API Error Center.