This API is used to obtain the content of the YAML template of an auto search job.
GET /v2/{project_id}/training-jobs/autosearch/yaml-templates/{algorithm_type}/{algorithm_name}
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
algorithm_type |
Yes |
String |
Type of the search algorithm. |
algorithm_name |
Yes |
String |
Name of the search algorithm. |
project_id |
Yes |
String |
Project ID. For details, see Obtaining a Project ID and Name. |
None
Status code: 200
Parameter |
Type |
Description |
|---|---|---|
file_name |
String |
YAML file name. |
content |
String |
YAML file content. |
The following shows how to query the content of the YAML configuration file whose algorithm_type is hpo and algorithm_name is Bayes.
GET https://endpoint/v2/{project_id}/training-jobs/autosearch/yaml-templates/hpo/Bayes
Status code: 200
ok
{
"file_name" : "Bayes.yaml",
"content" : "general:\n instance_per_trial: 1\n gpu_per_instance: 1\n cpu_per_instance: 1\n\nsearch_space:\n - params: # only support continuous params\n - type: continuous_param\n name : lr\n start: 0.001\n stop: 0.1\n\nsearch_algorithm:\n type: bayes_opt_search\n max_concurrent: 4\n reward_attr: accuracy\n num_samples: 8\n kind : ucb\n save_model_count : 3\n mode: max\n\nscheduler:\n type: FIFOScheduler"
}
Status Code |
Description |
|---|---|
200 |
ok |
See Error Codes.