文档首页> AI开发平台ModelArts> API参考> 训练管理> 获取自动化搜索作业yaml模板的信息
更新时间:2024-04-30 GMT+08:00
分享

获取自动化搜索作业yaml模板的信息

功能介绍

获取自动化搜索作业yaml模板的信息。

调试

您可以在API Explorer中调试该接口,支持自动认证鉴权。API Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。

URI

GET /v2/{project_id}/training-jobs/autosearch/yaml-templates

表1 路径参数

参数

是否必选

参数类型

描述

project_id

String

用户项目ID。获取方法请参见获取项目ID和名称

请求参数

响应参数

状态码: 200

表2 响应Body参数

参数

参数类型

描述

yaml_templates

Array of YamlTemplate objects

所有yaml文件的目录和文件名信息。

表3 YamlTemplate

参数

参数类型

描述

algorithm_type_en

String

AutoSearch算法类型,英文描述。

algorithm_type_zh

String

AutoSearch算法类型,中文描述。

algorithm_names

Array of strings

该算法类型下所有算法的名称。

请求示例

查询自动化搜索作业支持的yaml配置模板的信息

GET https://endpoint/v2/{project_id}/training-jobs/autosearch/yaml-templates

响应示例

状态码: 200

ok

{
  "yaml_templates" : [ {
    "algorithm_type_en" : "hpo",
    "algorithm_type_zh" : "algorithm_type_zh to translate",
    "algorithm_names" : [ "Anneal", "Bayes", "DragonFly", "FixNorm", "GridSearch", "TPE" ]
  }, {
    "algorithm_type_en" : "nas",
    "algorithm_type_zh" : "algorithm_type_zh to translate",
    "algorithm_names" : [ "AutoBSS", "AutoEvo", "AutoTopo", "MBNAS" ]
  }, {
    "algorithm_type_en" : "augment",
    "algorithm_type_zh" : "algorithm_type_zh to translate",
    "algorithm_names" : [ "AdvAutoAugment", "AutoAugment" ]
  }, {
    "algorithm_type_en" : "compression",
    "algorithm_type_zh" : "algorithm_type_zh to translate",
    "algorithm_names" : [ "AutoCompress" ]
  } ]
}

状态码

状态码

描述

200

ok

错误码

请参见错误码

分享:

    相关文档

    相关产品