Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Misleading error message when using Pipeline Parameters with same name

オープン
#1,807 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python

調査の方向性

azureml/pipeline/core/graph.py の 4538 行目付近にある str から始め、同じ名前の 2 つの PipelineParameter オブジェクトを使ってサンプルを再現します。重複した名前がどこで処理されるかを追跡します。重複したパラメーターを特定する情報量のあるエラーが衝突によって生成され、「PipelineDataset does not have a name.」となるのではないことを確認できれば完了です。

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

説明

I accidently provided the same parameter name for two different pipeline parameters used in different steps, what lead to the error message:

ValueError: PipelineDataset does not have a name.

> /anaconda/envs/azureml_py38/lib/python3.8/site-packages/azureml/pipeline/core/graph.py(4538)__str__()
   4536         """
   4537         if not self.name:
-> 4538             raise ValueError("PipelineDataset does not have a name.")
   4539         return "$AZUREML_DATAREFERENCE_{0}".format(self.name)
   4540 

Sample code leading to the issue (assuming default_input_ds: TabularDataset, output_loc: PipelineData, run configs and computetarget are initialized)

input_ds_pipeline_param = PipelineParameter(
    name="input_ds_param", default_value=default_input_ds
)

input_ds_consumption = DatasetConsumptionConfig(
    "tabular_dataset", input_ds_pipeline_param
)

scoring_step = ParallelRunStep(
    name="scoringstep",
    inputs=[input_ds_consumption],
    output=output_loc,
    parallel_run_config=score_run_config,
    allow_reuse=False,
)


destination_path = PipelineParameter(
    name="input_ds_param",
    default_value="samplepath/sampleoutput.parquet",
)

copying_step = PythonScriptStep(
    name="scorecopystep",
    script_name="scoring/parallel_batchscore_copyoutput.py",
    source_directory="../aml_sourcedir",
    arguments=["--output_path", output_loc, "--destination_path", destination_path],
    inputs=[output_loc],
    allow_reuse=False,
    compute_target=aml_compute_score,
    runconfig=copy_run_config,
)

Pipeline(workspace=ws, steps=[scoring_step, copying_step])


---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 696d753e-ad1b-3e09-6756-425de691b1be
* Version Independent ID: 42ba9f58-3c4d-4cf7-1f89-1fea2a2efa62
* Content: [azureml.pipeline.core.graph module - Azure Machine Learning Python](https://docs.microsoft.com/en-us/python/api/azureml-pipeline-core/azureml.pipeline.core.graph?view=azure-ml-py)
* Content Source: [AzureML-Docset/stable/docs-ref-autogen/azureml-pipeline-core/azureml.pipeline.core.graph.yml](https://github.com/MicrosoftDocs/MachineLearning-Python-pr/blob/live/AzureML-Docset/stable/docs-ref-autogen/azureml-pipeline-core/azureml.pipeline.core.graph.yml)
* Service: **machine-learning**
* Sub-service: **core**
* GitHub Login: @DebFro
* Microsoft Alias: **debfro**
主要言語
Jupyter Notebook
スター
4.4k
フォーク
2.6k
PR マージ指標
30日以内にマージされた PR はありません

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

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

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Azure/MachineLearningNotebooks のほかの issue

Azure/MachineLearningNotebooks の issue をすべて見る

似ている issue

Machine Learning の issue をもっと見る

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

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