Azure / Azure/MachineLearningNotebooks

How to submit Dataset Input as a Parameter to AZ ML CLI run submit-pipeline command?

オープン
#1,420 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
ADO Data4ML Pipelines product-issue question
主要言語
Jupyter Notebook
スター
4.4k
フォーク
2.6k
PR マージ指標
30日以内にマージされた PR はありません

説明

Refers to: https://github.com/Azure/MachineLearningNotebooks/blob/master/how-to-use-azureml/machine-learning-pipelines/intro-to-pipelines/aml-pipelines-showcasing-dataset-and-pipelineparameter.ipynb

To submit a parameter in an az ml cli `run submit-pipeline` command we use the syntax:

az ml run submit-pipeline –datapaths [DataPATHS Name=datastore/datapath] --experiment-name [Experiment_Name] --parameters [String_parameters Name=Value] --pipeline-id [ID]--resource-group [RGP] --subscription-id [SUB_ID] --workspace-name [AML_WS_NAME]

This will submit Datapaths and some string parameters with the pipeline. How do we submit Dataset references using az ml cli `run submit-pipeline` command?

For example, the Documentation Notebook: [aml-pipelines-showcasing-dataset-and-pipelineparameter](https://github.com/Azure/MachineLearningNotebooks/blob/master/how-to-use-azureml/machine-learning-pipelines/intro-to-pipelines/aml-pipelines-showcasing-dataset-and-pipelineparameter.ipynb)

To submit a Dataset Class reference we do:

iris_tabular_ds = Dataset.Tabular.from_delimited_files('link/iris.csv')
pipeline_run_with_params = experiment.submit(pipeline, pipeline_parameters={'tabular_ds_param': iris_tabular_ds})

Using REST Call the syntax is:

response = requests.post(rest_endpoint,
headers=aad_token,
json={"ExperimentName": "MyRestPipeline",
"RunSource": "SDK",
"DataSetDefinitionValueAssignments": { "tabular_ds_param": {"SavedDataSetReference": {"Id": iris_tabular_ds.id}}}
}
)

What is the syntax to achieve this using `az ml cli`?

`az ml run submit-pipeline --datapaths tabular_ds_param=[datastore]/[registered-dataset] --experiment-name [exp-name]-exp --pipeline-id [pipeline-id] --resource-group $(AML_RG) --subscription-id $(AML_SUB_ID) --workspace-name $(AML_WS)` does not work.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

参照されている aml-pipelines-showcasing-dataset-and-pipelineparameter.ipynb から始め、そこにある SDK および REST の Dataset パラメーターの例を、ここに示されている az ml run submit-pipeline コマンドと比較してください。登録済みの Dataset 参照を渡すためにサポートされている CLI 構文を確認し、動作する例と想定される送信結果を文書化してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
azure, jupyter-notebook, python
領域
cli, documentation, machine-learning
issue の種類
ドキュメント
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。