StepRunOutput クラス

パイプライン内の StepRun によって作成された出力を表します。

StepRunOutput を使用すると、ステップによって作成された PortDataReference にアクセスできます。

StepRunOutput を初期化します。

継承
builtins.object
StepRunOutput

コンストラクター

StepRunOutput(context, pipeline_run_id, step_run, name, step_output)

パラメーター

名前 説明
context
必須
<xref:azureml.pipeline.core._GraphContext>

グラフ コンテキスト オブジェクト。

pipeline_run_id
必須
str

出力を作成したパイプライン実行の ID。

step_run
必須

出力を作成したステップ実行オブジェクト。

name
必須
str

出力の名前。

step_output
必須
<xref:azureml.pipeline.core._restclients.aeva.models.NodeOutput>

ステップ出力。

context
必須
<xref:azureml.pipeline.core._GraphContext>

グラフ コンテキスト オブジェクト。

pipeline_run_id
必須
str

出力を作成したパイプライン実行の ID。

step_run
必須

出力を作成したステップ実行オブジェクト。

name
必須
str

出力の名前。

step_output
必須
<xref:azureml.pipeline.core._restclients.aeva.models.NodeOutput>

ステップ出力。

注釈

ステップ実行の出力は、get_output を呼び出してインスタンス化されます。 get_port_data_reference を使用して PortDataReference を取得します。これは、データをダウンロードするために、または将来のパイプラインでステップ入力として使用できます。

StepRun から StepRunOutput を取得し、出力データをダウンロードする例を次に示します。


   from azureml.pipeline.core import PipelineRun, StepRun, PortDataReference

   pipeline_run = PipelineRun(experiment, "<pipeline_run_id>")
   step_run = pipeline_run.find_step_run("<step_name>")[0]

   step_run_output = step_run.get_output("<output_name>")

   port_data_reference = step_run_output.get_port_data_reference()
   port_data_reference.download(local_path="path")

メソッド

get_port_data_reference

ステップによって生成されたポート データ参照を取得します。

get_port_data_reference

ステップによって生成されたポート データ参照を取得します。

get_port_data_reference()

戻り値

説明

ポート データ参照。