CLI(v2) 데이터 YAML 스키마

적용 대상:Azure CLI ml 확장 v2(현재)

에서 원본 JSON 스키마를 https://azuremlschemas.azureedge.net/latest/data.schema.json찾을 수 있습니다.

참고 항목

이 문서에 자세히 설명된 YAML 구문은 최신 버전의 ML CLI v2 확장에 대한 JSON 스키마를 기반으로 합니다. 이 구문은 최신 버전의 ML CLI v2 확장에서만 작동하도록 보장됩니다. https://azuremlschemasprod.azureedge.net/에서 이전 확장 버전에 대한 스키마를 찾을 수 있습니다.

YAML 구문

형식 설명 허용된 값 기본값
$schema string YAML 스키마입니다. Azure Machine Learning Visual Studio Code 확장을 사용하여 YAML 파일을 작성하는 경우 파일 맨 위에 포함 $schema 하여 스키마 및 리소스 완성을 호출합니다.
name string 필수입니다. 데이터 자산 이름입니다.
version string 데이터 집합 버전입니다. 생략하면 Azure Machine Learning에서 버전을 자동으로 생성합니다.
description string 데이터 자산 설명입니다.
tags 개체 데이터 저장소 태그 사전입니다.
type string 데이터 자산 형식입니다. 단일 파일 원본을 가리키는 데이터의 경우 uri_file을 지정하거나 폴더 원본을 가리키는 데이터의 경우 uri_folder를 지정합니다. uri_file, uri_folder uri_folder
path string 데이터 원본 파일 또는 폴더에 대한 로컬 경로 또는 데이터 원본 파일 또는 폴더에 대한 클라우드 경로의 URI입니다. 여기에 제공된 원본이 지정된 원본과 type 호환되는지 확인합니다.

지원되는 URI 형식은 azureml, https, wasbs, abfss, adl입니다. URI 형식을 azureml:// 사용하려면 Core 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/

다음 단계