ALIYUN::PAI::Experiment

更新时间:2025-02-12 01:38:57

ALIYUN::PAI::Experiment类型用于创建实验。

语法

{
  "Type": "ALIYUN::PAI::Experiment",
  "Properties": {
    "ArtifactUri": String,
    "ExperimentName": String,
    "WorkspaceId": String,
    "Accessibility": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

属性名称

类型

必须

允许更新

描述

约束

ArtifactUri

String

关联到实验的所有任务的默认Artifact输出路径。

当前仅支持 OSS路径。

ExperimentName

String

实验(Experiment的名称。

命名规则如下:

  • 以小写字母、大写字母开头。

  • 可以包含大小写字母、数字、下划线(_)或短划线(-)。

  • 长度为 1~63 个字符。

WorkspaceId

String

工作空间 ID。

Accessibility

String

可见性。

取值:

  • PRIVATE:私有(即仅创建者及其主账号可见)

  • PUBLIC:公开(即所有人可见)

返回值

Fn::GetAtt

  • Accessibility:可见性。

  • ArtifactUri:关联到实验的所有任务的默认 Artifact 输出路径。

  • OwnerId:主账号 ID。

  • ExperimentName:实验名称。

  • UserId:创建者 ID。

  • ExperimentId:实验 ID。

  • TensorboardLogUri:实验中使用的 TensorBoard 日志默认的OSS存储路径。

  • CreateTime:实验的创建时间。

  • WorkspaceId:工作空间 ID。

  • Labels:实验绑定的标签。

  • GmtModifiedTime:实验的更新时间。

示例

YAML
JSON
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  Accessibility:
    Type: String
    Description:
      en: Experimental Visibility.
    AllowedValues:
      - PRIVATE
      - PUBLIC
    Required: false
  ArtifactUri:
    Type: String
    Description:
      en: ArtifactUri is default OSS storage path of the output of trials in the experiment.
    Required: true
  ExperimentName:
    Type: String
    Description:
      en: Name is the name of the experiment, unique in a namespace.
    Required: true
  WorkspaceId:
    Type: String
    Description:
      en: WorkspaceId is the workspace id which contains the experiment.
    Required: true
Resources:
  ExtensionResource:
    Type: ALIYUN::PAI::Experiment
    Properties:
      Accessibility:
        Ref: Accessibility
      ArtifactUri:
        Ref: ArtifactUri
      ExperimentName:
        Ref: ExperimentName
      WorkspaceId:
        Ref: WorkspaceId
Outputs:
  Accessibility:
    Description: Experimental Visibility.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Accessibility
  ArtifactUri:
    Description: ArtifactUri is default OSS storage path of the output of trials in the experiment.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ArtifactUri
  OwnerId:
    Description: OwnerId is the user account id which this entity belongs to.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - OwnerId
  ExperimentName:
    Description: Name is the name of the experiment, unique in a namespace.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ExperimentName
  UserId:
    Description: UserId is the user account id which created this entity.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - UserId
  ExperimentId:
    Description: ExperimentId is globally unique identifier of the experiment.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ExperimentId
  TensorboardLogUri:
    Description: TensorboardLogUri is the default OSS storage path of tensorboard log of trials in the experiment.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - TensorboardLogUri
  CreateTime:
    Description: GmtCreateTime is time when this entity is created.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - CreateTime
  WorkspaceId:
    Description: WorkspaceId is the workspace id which contains the experiment.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - WorkspaceId
  Labels:
    Description: Labels are tags of the experiment.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Labels
  GmtModifiedTime:
    Description: GmtModifiedTime is time when this entity is modified.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - GmtModifiedTime
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Accessibility": {
      "Type": "String",
      "Description": {
        "en": "Experimental Visibility."
      },
      "AllowedValues": [
        "PRIVATE",
        "PUBLIC"
      ],
      "Required": false
    },
    "ArtifactUri": {
      "Type": "String",
      "Description": {
        "en": "ArtifactUri is default OSS storage path of the output of trials in the experiment."
      },
      "Required": true
    },
    "ExperimentName": {
      "Type": "String",
      "Description": {
        "en": "Name is the name of the experiment, unique in a namespace."
      },
      "Required": true
    },
    "WorkspaceId": {
      "Type": "String",
      "Description": {
        "en": "WorkspaceId is the workspace id which contains the experiment."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::PAI::Experiment",
      "Properties": {
        "Accessibility": {
          "Ref": "Accessibility"
        },
        "ArtifactUri": {
          "Ref": "ArtifactUri"
        },
        "ExperimentName": {
          "Ref": "ExperimentName"
        },
        "WorkspaceId": {
          "Ref": "WorkspaceId"
        }
      }
    }
  },
  "Outputs": {
    "Accessibility": {
      "Description": "Experimental Visibility.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Accessibility"
        ]
      }
    },
    "ArtifactUri": {
      "Description": "ArtifactUri is default OSS storage path of the output of trials in the experiment.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ArtifactUri"
        ]
      }
    },
    "OwnerId": {
      "Description": "OwnerId is the user account id which this entity belongs to.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "OwnerId"
        ]
      }
    },
    "ExperimentName": {
      "Description": "Name is the name of the experiment, unique in a namespace.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ExperimentName"
        ]
      }
    },
    "UserId": {
      "Description": "UserId is the user account id which created this entity.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "UserId"
        ]
      }
    },
    "ExperimentId": {
      "Description": "ExperimentId is globally unique identifier of the experiment.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ExperimentId"
        ]
      }
    },
    "TensorboardLogUri": {
      "Description": "TensorboardLogUri is the default OSS storage path of tensorboard log of trials in the experiment.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "TensorboardLogUri"
        ]
      }
    },
    "CreateTime": {
      "Description": "GmtCreateTime is time when this entity is created.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "CreateTime"
        ]
      }
    },
    "WorkspaceId": {
      "Description": "WorkspaceId is the workspace id which contains the experiment.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "WorkspaceId"
        ]
      }
    },
    "Labels": {
      "Description": "Labels are tags of the experiment.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Labels"
        ]
      }
    },
    "GmtModifiedTime": {
      "Description": "GmtModifiedTime is time when this entity is modified.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "GmtModifiedTime"
        ]
      }
    }
  }
}
                        
  • 本页导读 (1)
  • 语法
  • 属性
  • 返回值
  • 示例
AI助理

点击开启售前

在线咨询服务

你好,我是AI助理

可以解答问题、推荐解决方案等