获取实验
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
paiexperiment:GetExperiment |
get |
*全部资源
|
无 | 无 |
请求语法
GET /api/v1/experiments/{ExperimentId} HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ExperimentId |
string |
否 |
实验 ID。 |
exp-1zpfthdx****** |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| Verbose |
boolean |
否 |
是否获取关联到 Experiment 的最新 Run 信息 枚举值:
|
false |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
Experiment |
Experiment 实例信息 |
示例
正常返回示例
JSON格式
{
"ExperimentId": "",
"Name": "",
"WorkspaceId": "",
"ArtifactUri": "",
"TensorboardLogUri": "",
"Labels": [
{
"Key": "key",
"Value": "value",
"GmtCreateTime": "2023-12-27T03:30:04Z",
"GmtModifiedTime": "2023-12-27T03:30:04Z",
"ExperimentId": "exp-890waerw09a0f"
}
],
"UserId": "",
"OwnerId": "",
"GmtCreateTime": "",
"GmtModifiedTime": "",
"RequestId": "",
"Accessibility": "",
"LatestRun": {
"Accessibility": "PRIVATE",
"SourceId": "train9s0afvjkf",
"SourceType": "TrainingService",
"WorkspaceId": "145883",
"Params": [
{
"Value": "",
"Key": ""
}
],
"Labels": [
{
"Value": "",
"RunId": "",
"GmtCreateTime": "",
"GmtModifiedTime": "",
"Key": ""
}
],
"GmtModifiedTime": "2021-01-30T12:51:33.028Z",
"Name": "testrun",
"Metrics": [
{
"Value": 0,
"Step": 0,
"Timestamp": 0,
"Key": ""
}
],
"OwnerId": "1631044****3440",
"ExperimentId": "exp-1zpfthdx******",
"UserId": "",
"RunId": "run-1qJhzJ2YXgX****",
"GmtCreateTime": "2021-01-30T12:51:33.028Z",
"RequestId": "5A14FA81-DD4E-******-6343FE44B941"
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。
该文章对您有帮助吗?