Skema YAML data CLI (v2)

BERLAKU UNTUK:ekstensi ml Azure CLI v2 (saat ini)

Anda dapat menemukan skema JSON sumber di https://azuremlschemas.azureedge.net/latest/data.schema.json.

Catatan

Sintaks YAML yang dirinci dalam dokumen ini didasarkan pada skema JSON untuk versi terbaru ekstensi CLI v2 ML. Sintaks ini dijamin hanya berfungsi dengan versi terbaru ekstensi CLI v2 ML. Anda dapat menemukan skema untuk versi ekstensi yang lebih lama di https://azuremlschemasprod.azureedge.net/.

Sintaks YAML

Kunci Tipe Deskripsi Nilai yang diizinkan Nilai default
$schema string Skema YAML. Jika Anda menggunakan ekstensi Azure Pembelajaran Mesin Visual Studio Code untuk menulis file YAML, sertakan $schema di bagian atas file Anda untuk memanggil skema dan penyelesaian sumber daya.
name string Harus diisi. Nama aset data.
version string Versi himpunan data. Jika dihilangkan, Azure Pembelajaran Mesin membuat versi secara otomatis.
description string Deskripsi aset data.
tags object Kamus tag datastore.
type string Jenis aset data. Tentukan uri_file untuk data yang mengarah ke satu sumber file, atau uri_folder untuk data yang mengarah ke sumber folder. uri_file, uri_folder uri_folder
path string Baik jalur lokal ke file atau folder sumber data, atau URI jalur cloud ke file sumber data atau folder. Pastikan bahwa sumber yang disediakan di sini kompatibel dengan yang type ditentukan.

Jenis URI yang didukung adalah azureml, https, wasbs, abfss, dan adl. Untuk menggunakan azureml:// format URI, lihat Sintaks yaml inti.

Keterangan

Perintah az ml data dapat digunakan untuk mengelola aset data Azure Pembelajaran Mesin.

Contoh

Kunjungi sumber daya GitHub ini misalnya. Beberapa ditampilkan:

YAML: file penyimpanan data

$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: folder penyimpanan data

$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: file 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: folder 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: file 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: folder 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: file lokal

$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: folder lokal

$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/

Langkah berikutnya