GetHpoExperiment_人工智能平台PAI-自动机器学习_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

流控信息

当前云产品API请求速率暂未透出。

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
paiautoml:GetHpoExperiment
Get
HpoExperiment
acs:paiautoml:{#regionId}:{#accountId}:hpoexperiment/{#HpoExperimentId}

请求语法

GET /api/automl/v1/hpo/experiment/{ExperimentId} HTTP/1.1

路径参数

字段名称字段详情
ExperimentIdstring

HPO 实验 id

示例值:sX5O9Q8参考取值来源:
    ListHpoExperiments
    GetAutofeExperiment
    CreateHpoExperiment

返回参数

字段名称字段详情
RequestIdstring

POP 的请求 id

示例值:3F190916-B3E5-5D1E-AD0C-35C0DF105F51
Codestring

内部错误码。只在响应出错时被设置。

示例值:INVALID_INPUT_PARAMS
Messagestring

响应错误信息。只在响应出错时被设置。

示例值:Missing 'user_id' in request.
AccessDeniedDetailobject

访问被拒绝详细信息。

示例值:{ "AuthPrincipalType": "sub", "PolicyType": "AccountLevelIdentityBasedPolicy", "NoPermissionType": "NoPermission" }
ExperimentIdstring

HPO 实验 id

示例值:sX5O9Q8
Creatorstring

实验创建人的 UserId

示例值:123456789
SearchSpacestring

search_space.json 配置内容

示例值:{"${centerCount}":{"_type":"choice","_value":[2,3,4,5]},"${distanceType}":{"_type":"choice","_value":["euclidean","cosine","cityblock"]}}
Namestring

实验名称

示例值:my_hpo_exp_1
Statusstring

实验状态

示例值:INVALID_USER_OR_EXP, SUCCESS, or EXECUTION_FAILURE
JobTypestring

实验类型。对于 HPO 实验,类型值始终是 1.

示例值:1
ConfigInistring

trial.ini 配置内容

示例值:[odps_config] access_id=foo access_key=bar end_point=http://service.odps.aliyun.com/api log_view_host=http://logview.odps.aliyun.com project_name=my_project
ConfigYmlstring

exp.yml 配置内容

示例值:assessor: classArgs: optimize_mode: maximize start_step: 1 name: PAIAssessor debug: true experimentName: maxcompute_kmeans_monitor experimentWorkingDirectory: ../expdir logLevel: debug maxTrialNumber: 10 searchSpaceFile: search_space.json trainingService: platform: local trialCommand: python3 -m hpo_tools.core.utils.run --config=./config.ini trialConcurrency: 2 tuner: classArgs: optimize_mode: maximize name: TPE
GmtCreateTimestring

实验创建时间。

示例值:2024-01-01 08:30:11
GmtModifiedTimestring

实验数据最近更新时间。

示例值:2024-01-01 08:30:11
WorkspaceIdstring

工作空间 ID。

示例值:12345
Accessibilitystring

工作空间可见性,可能值为:展开详情

示例值:PRIVATE
Descriptionstring

实验描述信息

示例值:我的实验
TrialCountinteger<int32>

实验已经产生的 trial 的数量

示例值:3
TrialStatusmap<string>

trail 状态名称和数量

HpoExperimentConfigurationobject

实验配置信息

示例值:{ "output_config": { "model_path": "bi_ps_${exp_id}_${trial_id}" }, "platform_config": { "cmd": [ "PAI -name ps_smart\n -project foo", "PAI -name prediction\n -project foo", "PAI -name evaluate -project foo", "INSERT OVERWRITE TABLE my_table;" ], "name": "MaxCompute" }, "metric_config": { "metric_dict": { "recall": 0.5, "auc": 0.25, "precision": 0.25 }, "metric_source": [ "select * from my_metrics where pt='${exp_id}_${trial_id}';" ], "metric_type": "table", "final_mode": "best" }, "odps_config": { "project_name": "my_project", "role_arn": "acs:ram::123456789:role/aliyunserviceroleforfoo", "region": "cn-shanghai", "end_point": "http://service.cn.maxcompute.aliyun-inc.com/api", "log_view_host": "http://logview.odps.aliyun.com" }, "yml_config": { "max_trial_number": 5, "assessor": { "name": "PAIAssessor", "class_args": { "earlystop": true, "start_step": 5, "optimize_mode": "maximize" } }, "experiment_name": "my_exp", "tuner": { "name": "TPE", "class_args": { "optimize_mode": "maximize" } }, "trial_concurrency": 2 }, "search_space": { "${max_depth}": { "_type": "choice", "_value": [ 1, 3, 5 ] }, "${tree_count}": { "_value": [ 50, 100, 150 ], "_type": "choice" } } }
Deletedboolean

是否已经被删除

示例值:0
Tagsarray<object>

用户自定义标签列表

返回示例

变更历史

变更时间变更内容概要操作
2025-02-07
变更返回参数
2024-10-21
变更返回参数

相关示例