共用方式為


CLI (v2) 功能實體 YAML 架構

適用於:Azure CLI ml 延伸模組 v2 (目前)

注意

本文件中詳述的 YAML 語法是以最新版 ML CLI v2 延伸模組的 JSON 結構描述為基礎。 此語法僅保證能與最新版的 ML CLI v2 延伸模組搭配運作。 您可以在 https://azuremlschemasprod.azureedge.net/ 找到舊版延伸模組的結構描述。

YAML 語法

機碼 類型 描述 允許的值 預設值
$schema 字串 YAML 結構描述。 如果您使用 Azure 機器學習 VS Code 擴充功能來撰寫 YAML 檔案,包括檔案頂端$schema可讓您叫用架構和資源完成。
NAME 字串 必要。 功能存放區實體名稱。
version 字串 必要。 功能存放區實體版本。
description 字串 功能存放區實體描述。
之後 字串 功能存放區實體階段。 開發、生產、封存 部署
tags object 功能存放區實體的標籤典。
index_columns 物件清單 必要。 功能存放區實體的索引數據行。
index_columns.name 字串 必要。 索引數據行名稱。
index_columns.type 字串 必要。 索引數據行數據類型。 string, integer, long, float, double, binary, datetime, boolean

備註

az ml feature-store-entity命令可用來管理功能存放區實體。

範例

範例 GitHub 存放庫中有範例可用。 基本范例如下所示。

YAML:基本

$schema: http://azureml/sdk-2-0/FeatureStoreEntity.json

name: account
version: "1"
description: This entity represents user account index key accountID.
index_columns:
  - name: accountID
    type: string
tags:
  data_type: nonPII

下一步