次の方法で共有


CLI (v2) データ YAML スキーマ

適用対象: Azure CLI ml 拡張機能 v2 (現在)

ソース JSON スキーマは、 https://azuremlschemas.azureedge.net/latest/data.schema.jsonにあります。

Note

このドキュメントで詳しく説明されている YAML 構文は、最新バージョンの ML CLI v2 拡張機能の JSON スキーマに基づいています。 この構文は、ML CLI v2 拡張機能の最新バージョンでのみ動作することが保証されています。 以前のバージョンの拡張機能のスキーマについては、https://azuremlschemasprod.azureedge.net/ でご確認いただけます。

YAML 構文

キー Type 説明 使用できる値 既定値
$schema string YAML スキーマ。 Azure Machine Learning 用 Visual Studio Code 拡張機能を使用して YAML ファイルを作成する場合、ファイルの先頭に $schema を含めて、スキーマとリソースの入力候補を呼び出します。
name string 必須。 データ資産の名前。
version string データセットのバージョン。 省略した場合、Azure Machine Learning によってバージョンが自動生成されます。
description string データ アセットの説明。
tags object データストアのタグの辞書。
type string データ資産の種類。 1 つのファイル ソースを指すデータの場合は uri_file、フォルダー ソースを指すデータの場合は uri_folder を指定します。 uri_file, uri_folder uri_folder
path string データ ソース ファイルまたはフォルダーへのローカル パス、またはデータ ソース ファイルまたはフォルダーへのクラウド パスの URI。 ここで指定したソースが、指定したソース type と互換性があることを確認します。

サポートされる URI の種類は、azuremlhttpswasbsabfss および adl です。 azureml:// URI 形式を使用するには、コア yaml 構文に関する記事を参照してください。

解説

az ml data コマンドを使用して、Azure Machine Learning データ資産を管理できます。

例については、こちらの GitHub リソースを参照してください。 いくつかのものを次に示します。

YAML: データストア ファイル

$schema: https://azuremlschemas.azureedge.net/latest/data.schema.json
name: cloud-file-example
description: Data asset created from file in cloud.
type: uri_file
path: azureml://datastores/workspaceblobstore/paths/example-data/titanic.csv

YAML: データストア フォルダー

$schema: https://azuremlschemas.azureedge.net/latest/data.schema.json
name: cloud-folder-example
description: Data asset created from folder in cloud.
type: uri_folder
path: azureml://datastores/workspaceblobstore/paths/example-data/

YAML: https ファイル

$schema: https://azuremlschemas.azureedge.net/latest/data.schema.json
name: cloud-file-https-example
description: Data asset created from a file in cloud using https URL.
type: uri_file
path: https://account-name.blob.core.windows.net/container-name/example-data/titanic.csv

YAML: https フォルダー

$schema: https://azuremlschemas.azureedge.net/latest/data.schema.json
name: cloud-folder-https-example
description: Dataset created from folder in cloud using https URL.
type: uri_folder
path: https://account-name.blob.core.windows.net/container-name/example-data/

YAML: wasbs ファイル

$schema: https://azuremlschemas.azureedge.net/latest/data.schema.json
name: cloud-file-wasbs-example
description: Data asset created from a file in cloud using wasbs URL.
type: uri_file
path: wasbs://account-name.blob.core.windows.net/container-name/example-data/titanic.csv

YAML: wasbs フォルダー

$schema: https://azuremlschemas.azureedge.net/latest/data.schema.json
name: cloud-folder-wasbs-example
description: Data asset created from folder in cloud using wasbs URL.
type: uri_folder
path: wasbs://account-name.blob.core.windows.net/container-name/example-data/

YAML: ローカル ファイル

$schema: https://azuremlschemas.azureedge.net/latest/data.schema.json
name: local-file-example-titanic
description: Data asset created from local file.
type: uri_file
path: sample-data/titanic.csv

YAML: ローカル フォルダー

$schema: https://azuremlschemas.azureedge.net/latest/data.schema.json
name: local-folder-example-titanic
description: Dataset created from local folder.
type: uri_folder
path: sample-data/

次のステップ