doc-exports/docs/modelarts/api-ref/ShowAutoSearchTrialEarlyStop.html
Wuwan, Qi f81ead2467 ModelArts API 24.3.0 20241128 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Wuwan, Qi <wuwanqi1@noreply.gitea.eco.tsi-dev.otc-service.com>
Co-committed-by: Wuwan, Qi <wuwanqi1@noreply.gitea.eco.tsi-dev.otc-service.com>
2024-11-29 09:04:54 +00:00

5.4 KiB

Early Stopping a Trial of an Auto Search Job

Function

This API is used to early stop a trial of an auto search job.

URI

POST /v2/{project_id}/training-jobs/{training_job_id}/autosearch-trial-earlystop/{trial_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID. For details, see Obtaining a Project ID and Name.

training_job_id

Yes

String

ID of a training job.

trial_id

Yes

String

trial_id for hyperparameter search.

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

earlystop_trial

String

trial_id of the trial that is early stopped.

Example Requests

The following shows how to early stop the trial whose trial_id is 50093e6c using the job whose training_job_id is e346206c-6fde-4c33-9dcd-55be17858ceb as an example.

POST https://endpoint/v2/{project_id}/training-jobs/e346206c-6fde-4c33-9dcd-55be17858ceb/autosearch-trial-earlystop/50093e6c

Example Responses

Status code: 200

ok

{
  "earlystop_trial" : "50093e6c"
}

Status Codes

Status Code

Description

200

ok

Error Codes

See Error Codes.