ALIYUN::PAI::Experiment类型用于创建实验。
语法
{
  "Type": "ALIYUN::PAI::Experiment",
  "Properties": {
    "ArtifactUri": String,
    "ExperimentName": String,
    "WorkspaceId": String,
    "Accessibility": String
  }
}属性
属性名称  | 类型  | 必须  | 允许更新  | 描述  | 约束  | 
ArtifactUri  | String  | 是  | 否  | 关联到实验的所有任务的默认Artifact输出路径。  | 当前仅支持 OSS路径。  | 
ExperimentName  | String  | 是  | 是  | 实验(Experiment的名称。  | 命名规则如下: 
  | 
WorkspaceId  | String  | 是  | 否  | 工作空间 ID。  | 无  | 
Accessibility  | String  | 否  | 是  | 可见性。  | 取值: 
  | 
返回值
Fn::GetAtt
Accessibility:可见性。
ArtifactUri:关联到实验的所有任务的默认 Artifact 输出路径。
OwnerId:主账号 ID。
ExperimentName:实验名称。
UserId:创建者 ID。
ExperimentId:实验 ID。
TensorboardLogUri:实验中使用的 TensorBoard 日志默认的OSS存储路径。
CreateTime:实验的创建时间。
WorkspaceId:工作空间 ID。
Labels:实验绑定的标签。
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
{
  "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"
        ]
      }
    }
  }
}
                        该文章对您有帮助吗?