Cria um experimento do PAI.
Sintaxe
{
"Type": "ALIYUN::PAI::Experiment",
"Properties": {
"ArtifactUri": String,
"ExperimentName": String,
"WorkspaceId": String,
"Accessibility": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
ArtifactUri |
String |
Sim |
Não |
Caminho padrão de saída de artefatos de todas as tarefas associadas ao experimento. |
Aceita apenas caminhos do Object Storage Service (OSS). |
|
ExperimentName |
String |
Sim |
Sim |
Nome do experimento. |
O nome deve atender aos seguintes requisitos:
|
|
WorkspaceId |
String |
Sim |
Não |
ID do workspace. |
Nenhuma. |
|
Accessibility |
String |
Não |
Sim |
Visibilidade do experimento. |
Valores válidos:
|
Valores de retorno
Fn::GetAtt
Accessibility: visibilidade do experimento.
ArtifactUri: caminho padrão de saída de artefatos de todas as tarefas associadas ao experimento.
OwnerId: ID da conta Alibaba Cloud.
ExperimentName: nome do experimento.
UserId: ID da conta do criador.
ExperimentId: ID do experimento.
TensorboardLogUri: caminho de armazenamento padrão no OSS para logs do TensorBoard usados pelo experimento.
CreateTime: hora de criação do experimento.
WorkspaceId: ID do workspace.
Labels: tags adicionadas ao experimento.
GmtModifiedTime: hora da última modificação do experimento.
Exemplos
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"
]
}
}
}
}