CLI (v2) adat YAML-séma
A KÖVETKEZŐRE VONATKOZIK: Azure CLI ml-bővítmény v2 (aktuális)
A forrás JSON-sémát a következő helyen https://azuremlschemas.azureedge.net/latest/data.schema.jsontalálja: .
Feljegyzés
A dokumentumban részletezett YAML-szintaxis az ML CLI v2 bővítmény legújabb verziójának JSON-sémáján alapul. Ez a szintaxis garantáltan csak az ML CLI v2 bővítmény legújabb verziójával működik. A régebbi bővítményverziók sémáit a következő helyen https://azuremlschemasprod.azureedge.net/találja: .
YAML-szintaxis
Kulcs | Típus | Leírás | Megengedett értékek | Alapértelmezett érték |
---|---|---|---|---|
$schema |
húr | A YAML-séma. Ha az Azure Machine Learning Visual Studio Code-bővítményt használja a YAML-fájl létrehozásához, a fájl tetején adja meg $schema a séma és az erőforrás-kiegészítések meghívásához. |
||
name |
húr | Szükséges. Az adategység neve. | ||
version |
húr | Az adathalmaz verziója. Ha nincs megadva, az Azure Machine Learning automatikusan létrehozza a verziót. | ||
description |
húr | Az adategység leírása. | ||
tags |
object | Az adattárcímke szótára. | ||
type |
húr | Az adategység típusa. Adja meg uri_file az egyetlen fájlforrásra uri_folder vagy egy mappaforrásra ható adatokat. |
uri_file , uri_folder |
uri_folder |
path |
húr | Az adatforrásfájl vagy -mappa helyi elérési útja, vagy az adatforrásfájlhoz vagy mappához vezető felhőbeli elérési út URI-ja. Győződjön meg arról, hogy az itt megadott forrás kompatibilis a type megadott forrással. A támogatott URI-típusok a következők azureml : , https , wasbs abfss és adl . Az URI formátum használatához lásd a azureml:// Core yaml szintaxisát. |
Megjegyzések
A az ml data
parancsok az Azure Machine Learning adategységeinek kezelésére használhatók.
Példák
Példákért tekintse meg ezt a GitHub-erőforrást . Számos látható:
YAML: adattárfájl
$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: adattármappa
$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-fájl
$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 mappa
$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 fájl
$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 mappa
$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: helyi fájl
$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: helyi mappa
$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/