获取支持的超参搜索算法
功能介绍
获取支持的超参搜索算法。
调试
您可以在API Explorer中调试该接口,支持自动认证鉴权。API Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。
URI
GET /v2/{project_id}/search-algorithms
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
project_id |
是 |
String |
参数解释:用户项目ID。获取方法请参见获取项目ID和名称。 约束限制:1 - 64字符,字母、数字和中划线。 取值范围:不涉及。 默认取值:不涉及。 |
请求参数
无
响应参数
状态码:200
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
search_algo_count |
Integer |
超参搜索算法的个数。 |
|
search_algo_list |
Array of search_algo_list objects |
所有超参搜索算法的列表。 |
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
name |
String |
超参搜索算法的名称。 |
|
params |
Array of params objects |
超参搜索算法的参数列表。 |
|
description |
String |
超参搜索算法的描述。 |
请求示例
查询0代码超参搜索支持的搜索算法的信息。
GET https://endpoint/v2/{project_id}/search-algorithms
响应示例
状态码:200
ok
{
"search_algo_count" : 3,
"search_algo_list" : [ {
"name" : "bayes_opt_search",
"params" : [ {
"key" : "kind",
"value" : "ucb",
"type" : "String"
}, {
"key" : "kappa",
"value" : "2.5",
"type" : "Float"
}, {
"key" : "xi",
"value" : "0.0",
"type" : "Float"
}, {
"key" : "num_samples",
"value" : "20",
"type" : "Integer"
}, {
"key" : "seed",
"value" : "1",
"type" : "Integer"
} ],
"description" : "Hyperparameter search using Gaussian process."
}, {
"name" : "tpe_search",
"params" : [ {
"key" : "gamma",
"value" : "0.25",
"type" : "Float"
}, {
"key" : "n_initial_points",
"value" : "20",
"type" : "Integer"
}, {
"key" : "num_samples",
"value" : "20",
"type" : "Integer"
}, {
"key" : "seed",
"value" : "1",
"type" : "Integer"
} ],
"description" : "Hyperparameter search using the tree-structured Parzen estimator algorithm."
}, {
"name" : "anneal_search",
"params" : [ {
"key" : "avg_best_idx",
"value" : "2.0",
"type" : "Float"
}, {
"key" : "shrink_coef",
"value" : "0.1",
"type" : "Float"
}, {
"key" : "num_samples",
"value" : "20",
"type" : "Integer"
}, {
"key" : "seed",
"value" : "1",
"type" : "Integer"
} ],
"description" : "Hyperparameter search using simulated annealing algorithm."
} ]
}
状态码
|
状态码 |
描述 |
|---|---|
|
200 |
ok |
错误码
请参见错误码。