你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Microsoft.MachineLearningServices workspaces/labelingJobs 2021-03-01-preview

Bicep 资源定义

workspaces/labelingJobs 资源类型可以通过针对以下操作进行部署:

有关每个 API 版本中更改的属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.MachineLearningServices/workspaces/labelingJobs 资源,请将以下 Bicep 添加到模板。

resource symbolicname 'Microsoft.MachineLearningServices/workspaces/labelingJobs@2021-03-01-preview' = {
  name: 'string'
  parent: resourceSymbolicName
  properties: {
    datasetConfiguration: {
      assetName: 'string'
      datasetVersion: 'string'
      incrementalDatasetRefreshEnabled: bool
    }
    description: 'string'
    jobInstructions: {
      uri: 'string'
    }
    jobType: 'string'
    labelCategories: {
      {customized property}: {
        allowMultiSelect: bool
        classes: {
          {customized property}: {
            displayName: 'string'
            subclasses: {
              {customized property}: {}
          }
        }
        displayName: 'string'
      }
    }
    labelingJobMediaProperties: {
      mediaType: 'string'
      // For remaining properties, see LabelingJobMediaProperties objects
    }
    mlAssistConfiguration: {
      inferencingComputeBinding: {
        instanceCount: int
        instanceType: 'string'
        isLocal: bool
        location: 'string'
        properties: {
          {customized property}: 'string'
        }
        target: 'string'
      }
      mlAssistEnabled: bool
      trainingComputeBinding: {
        instanceCount: int
        instanceType: 'string'
        isLocal: bool
        location: 'string'
        properties: {
          {customized property}: 'string'
        }
        target: 'string'
      }
    }
    properties: {
      {customized property}: 'string'
    }
    tags: {
      {customized property}: 'string'
    }
  }
}

LabelingJobMediaProperties 对象

设置 mediaType 属性以指定对象的类型。

对于 Image,请使用:

  mediaType: 'Image'
  annotationType: 'string'

对于 “文本”,请使用:

  mediaType: 'Text'
  annotationType: 'Classification'

属性值

workspaces/labelingJobs

名称 说明
name 资源名称

了解如何在 Bicep 中为子资源设置名称和类型。
字符串 (必需)
父级 (parent) 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。

有关详细信息,请参阅 父资源之外的子资源
类型为资源的符号名称: 工作区
properties [必需]实体的其他属性。 需要标记作业 ()

标记作业

名称 说明
datasetConfiguration 配置作业中使用的数据集。 LabelingDatasetConfiguration
description 资产说明文本。 string
jobInstructions 作业的标记说明。 LabelingJobInstructions
jobType [必需]指定作业的类型。 应始终将此字段设置为“标记”。 “Command”
“标记”
需要“扫描” ()
labelCategories 作业的标签类别。 LabelingJobLabelCategories
labelingJobMediaProperties 作业中的媒体类型特定属性。 LabelingJobMediaProperties
mlAssistConfiguration 在作业中配置 MLAssist 功能。 MLAssistConfiguration
properties 资产属性字典。 LabelingJobProperties
标记 标记字典。 可以添加、删除和更新标记。 对象 (object)

LabelingDatasetConfiguration

名称 说明
assetName 要执行标记的数据资产的名称。 string
datasetVersion AML 数据集版本。 string
incrementalDatasetRefreshEnabled 指示是否启用增量数据集刷新。 bool

LabelingJobInstructions

名称 说明
uri 指向包含标签器详细标记说明的页面的链接。 字符串

LabelingJobLabelCategories

名称 说明
{customized property} LabelCategory

LabelCategory

名称 说明
allowMultiSelect 指示是否允许在此类别中选择多个类。 bool
此类别中的标签类字典。 LabelCategoryClasses
displayName 标签类别的显示名称。 string

LabelCategoryClasses

名称 说明
{customized property} LabelClass

LabelClass

名称 说明
displayName 标签类的显示名称。 字符串
标签类的子类字典。 LabelClassSubclasses

LabelClassSubclasses

名称 说明
{customized property} LabelClass

LabelingJobMediaProperties

名称 说明
mediaType 设置对象类型 图像
需要文本 ()

LabelingJobImageProperties

名称 说明
mediaType [必需]作业的媒体类型。 “Image” (必需)
annotationType 图像标记作业的批注类型。 “BoundingBox”
“Classification”
“InstanceSegmentation”

LabelingJobTextProperties

名称 说明
mediaType [必需]作业的媒体类型。 “Text” (必需)
annotationType 文本标记作业的批注类型。 “Classification”

MLAssistConfiguration

名称 说明
inferencingComputeBinding 用于推理的 AML 计算绑定。 ComputeConfiguration
mlAssistEnabled 指示是否启用 MLAssist 功能。 bool
trainingComputeBinding 训练中使用的 AML 计算绑定。 ComputeConfiguration

ComputeConfiguration

名称 说明
instanceCount 实例或节点数。 int
instanceType 要运行的 SKU 类型。 字符串
isLocal 对于在本地计算上运行的作业,设置为 true。 bool
location 虚拟群集运行的位置。 string
properties 其他属性。 ComputeConfigurationProperties
目标 要面向的计算的 ARM 资源 ID。 如果未提供,资源将部署为托管资源。 字符串

ComputeConfigurationProperties

名称 说明
{customized property} 字符串

LabelingJobProperties

名称 说明
{customized property} 字符串

ARM 模板资源定义

可以使用面向以下操作部署 workspaces/labelingJobs 资源类型:

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.MachineLearningServices/workspaces/labelingJobs 资源,请将以下 JSON 添加到模板。

{
  "type": "Microsoft.MachineLearningServices/workspaces/labelingJobs",
  "apiVersion": "2021-03-01-preview",
  "name": "string",
  "properties": {
    "datasetConfiguration": {
      "assetName": "string",
      "datasetVersion": "string",
      "incrementalDatasetRefreshEnabled": "bool"
    },
    "description": "string",
    "jobInstructions": {
      "uri": "string"
    },
    "jobType": "string",
    "labelCategories": {
      "{customized property}": {
        "allowMultiSelect": "bool",
        "classes": {
          "{customized property}": {
            "displayName": "string",
            "subclasses": {
              "{customized property}": {}
          }
        },
        "displayName": "string"
      }
    },
    "labelingJobMediaProperties": {
      "mediaType": "string"
      // For remaining properties, see LabelingJobMediaProperties objects
    },
    "mlAssistConfiguration": {
      "inferencingComputeBinding": {
        "instanceCount": "int",
        "instanceType": "string",
        "isLocal": "bool",
        "location": "string",
        "properties": {
          "{customized property}": "string"
        },
        "target": "string"
      },
      "mlAssistEnabled": "bool",
      "trainingComputeBinding": {
        "instanceCount": "int",
        "instanceType": "string",
        "isLocal": "bool",
        "location": "string",
        "properties": {
          "{customized property}": "string"
        },
        "target": "string"
      }
    },
    "properties": {
      "{customized property}": "string"
    },
    "tags": {
      "{customized property}": "string"
    }
  }
}

LabelingJobMediaProperties 对象

设置 mediaType 属性以指定对象的类型。

对于 Image,请使用:

  "mediaType": "Image",
  "annotationType": "string"

对于 “文本”,请使用:

  "mediaType": "Text",
  "annotationType": "Classification"

属性值

workspaces/labelingJobs

名称 说明 Value
type 资源类型 “Microsoft.MachineLearningServices/workspaces/labelingJobs”
apiVersion 资源 API 版本 '2021-03-01-preview'
name 资源名称

了解如何在 JSON ARM 模板中设置子资源的名称和类型。
字符串 (必需)
properties [必需]实体的其他属性。 需要标记作业 ()

LabelingJob

名称 说明
datasetConfiguration 作业中使用的数据集的配置。 LabelingDatasetConfiguration
description 资产说明文本。 字符串
jobInstructions 标记作业的说明。 LabelingJobInstructions
jobType [必需]指定作业的类型。 此字段应始终设置为“标记”。 'Command'
“标记”
需要“扫描” ()
labelCategories 标记作业的类别。 LabelingJobLabelCategories
labelingJobMediaProperties 作业中的媒体类型特定属性。 LabelingJobMediaProperties
mlAssistConfiguration 作业中 MLAssist 功能的配置。 MLAssistConfiguration
properties 资产属性字典。 LabelingJobProperties
标记 标记字典。 可以添加、删除和更新标记。 对象 (object)

LabelingDatasetConfiguration

名称 说明
assetName 要执行标记的数据资产的名称。 字符串
datasetVersion AML 数据集版本。 字符串
incrementalDatasetRefreshEnabled 指示是否启用增量数据集刷新。 bool

LabelingJobInstructions

名称 说明
uri 指向包含标记人员详细标记说明的页面的链接。 字符串

LabelingJobLabelCategories

名称 说明
{customized property} LabelCategory

LabelCategory

名称 说明
allowMultiSelect 指示是否允许在此类别中选择多个类。 bool
此类别中的标签类字典。 LabelCategoryClasses
displayName 标签类别的显示名称。 字符串

LabelCategoryClasses

名称 说明
{customized property} LabelClass

LabelClass

名称 说明
displayName 标签类的显示名称。 字符串
标签类的子类字典。 LabelClassSubclasses

LabelClassSubclasses

名称 说明
{customized property} LabelClass

LabelingJobMediaProperties

名称 说明
mediaType 设置对象类型 图像
需要文本 ()

LabelingJobImageProperties

名称 说明
mediaType [必需]作业的媒体类型。 “Image” (必需)
annotationType 图像标记作业的注释类型。 “BoundingBox”
“分类”
“InstanceSegmentation”

LabelingJobTextProperties

名称 说明
mediaType [必需]作业的媒体类型。 “Text” (必需)
annotationType 文本标记作业的注释类型。 “分类”

MLAssistConfiguration

名称 说明
inferencingComputeBinding 用于推理的 AML 计算绑定。 ComputeConfiguration
mlAssistEnabled 指示是否启用 MLAssist 功能。 bool
trainingComputeBinding 训练中使用的 AML 计算绑定。 ComputeConfiguration

ComputeConfiguration

名称 说明
instanceCount 实例或节点数。 int
instanceType 要运行的 SKU 类型。 string
isLocal 对于在本地计算上运行的作业,设置为 true。 bool
location 虚拟群集运行的位置。 string
properties 其他属性。 ComputeConfigurationProperties
目标 要面向的计算的 ARM 资源 ID。 如果未提供,资源将部署为托管资源。 字符串

ComputeConfigurationProperties

名称 说明
{customized property} 字符串

LabelingJobProperties

名称 说明
{customized property} 字符串

Terraform (AzAPI 提供程序) 资源定义

可以使用面向以下操作部署 workspaces/labelingJobs 资源类型:

  • 资源组

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.MachineLearningServices/workspaces/labelingJobs 资源,请将以下 Terraform 添加到模板。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.MachineLearningServices/workspaces/labelingJobs@2021-03-01-preview"
  name = "string"
  parent_id = "string"
  body = jsonencode({
    properties = {
      datasetConfiguration = {
        assetName = "string"
        datasetVersion = "string"
        incrementalDatasetRefreshEnabled = bool
      }
      description = "string"
      jobInstructions = {
        uri = "string"
      }
      jobType = "string"
      labelCategories = {
        {customized property} = {
          allowMultiSelect = bool
          classes = {
            {customized property} = {
              displayName = "string"
              subclasses = {
                {customized property} = {}
            }
          }
          displayName = "string"
        }
      }
      labelingJobMediaProperties = {
        mediaType = "string"
        // For remaining properties, see LabelingJobMediaProperties objects
      }
      mlAssistConfiguration = {
        inferencingComputeBinding = {
          instanceCount = int
          instanceType = "string"
          isLocal = bool
          location = "string"
          properties = {
            {customized property} = "string"
          }
          target = "string"
        }
        mlAssistEnabled = bool
        trainingComputeBinding = {
          instanceCount = int
          instanceType = "string"
          isLocal = bool
          location = "string"
          properties = {
            {customized property} = "string"
          }
          target = "string"
        }
      }
      properties = {
        {customized property} = "string"
      }
      tags = {
        {customized property} = "string"
      }
    }
  })
}

LabelingJobMediaProperties 对象

设置 mediaType 属性以指定对象的类型。

对于 Image,请使用:

  mediaType = "Image"
  annotationType = "string"

对于 “文本”,请使用:

  mediaType = "Text"
  annotationType = "Classification"

属性值

workspaces/labelingJobs

名称 说明 Value
type 资源类型 “Microsoft.MachineLearningServices/workspaces/labelingJobs@2021-03-01-preview”
name 资源名称 字符串 (必需)
parent_id 此资源的父资源的 ID。 类型为的资源的 ID: 工作区
properties [必需]实体的其他属性。 需要标记作业 ()

LabelingJob

名称 说明
datasetConfiguration 作业中使用的数据集的配置。 LabelingDatasetConfiguration
description 资产说明文本。 string
jobInstructions 标记作业的说明。 LabelingJobInstructions
jobType [必需]指定作业的类型。 此字段应始终设置为“标记”。 “Command”
“标记”
需要“扫描” ()
labelCategories 标记作业的类别。 LabelingJobLabelCategories
labelingJobMediaProperties 作业中的媒体类型特定属性。 LabelingJobMediaProperties
mlAssistConfiguration 作业中 MLAssist 功能的配置。 MLAssistConfiguration
properties 资产属性字典。 LabelingJobProperties
标记 标记字典。 可以添加、删除和更新标记。 对象 (object)

LabelingDatasetConfiguration

名称 说明
assetName 要执行标记的数据资产的名称。 字符串
datasetVersion AML 数据集版本。 字符串
incrementalDatasetRefreshEnabled 指示是否启用增量数据集刷新。 bool

LabelingJobInstructions

名称 说明
uri 指向包含标记人员详细标记说明的页面的链接。 字符串

LabelingJobLabelCategories

名称 说明
{customized property} LabelCategory

LabelCategory

名称 说明
allowMultiSelect 指示是否允许在此类别中选择多个类。 bool
此类别中的标签类字典。 LabelCategoryClasses
displayName 标签类别的显示名称。 string

LabelCategoryClasses

名称 说明
{customized property} LabelClass

LabelClass

名称 说明
displayName 标签类的显示名称。 string
标签类的子类字典。 LabelClassSubclasses

LabelClassSubclasses

名称 说明
{customized property} LabelClass

LabelingJobMediaProperties

名称 说明
mediaType 设置对象类型 图像
需要文本 ()

LabelingJobImageProperties

名称 说明
mediaType [必需]作业的媒体类型。 “Image” (必需)
annotationType 图像标记作业的注释类型。 “BoundingBox”
“分类”
“InstanceSegmentation”

LabelingJobTextProperties

名称 说明
mediaType [必需]作业的媒体类型。 “Text” (必需)
annotationType 文本标记作业的注释类型。 “分类”

MLAssistConfiguration

名称 说明
inferencingComputeBinding 用于推理的 AML 计算绑定。 ComputeConfiguration
mlAssistEnabled 指示是否启用 MLAssist 功能。 bool
trainingComputeBinding 训练中使用的 AML 计算绑定。 ComputeConfiguration

ComputeConfiguration

名称 说明
instanceCount 实例或节点数。 int
instanceType 要运行的 SKU 类型。 字符串
isLocal 对于在本地计算上运行的作业,设置为 true。 bool
location 虚拟群集运行的位置。 string
properties 其他属性。 ComputeConfigurationProperties
目标 要面向的计算的 ARM 资源 ID。 如果未提供,资源将部署为托管资源。 字符串

ComputeConfigurationProperties

名称 说明
{customized property} 字符串

LabelingJobProperties

名称 说明
{customized property} 字符串