[azureml python sdk v2] access files in URI_FOLDER output after job has finished?
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- azure, jupyter-notebook, python
- 領域
- data, machine-learning
調査の方向性
まず、issue に示されている Azure ML v2 SDK の job API と NodeOutput API から始め、それらを MlflowClient のアクセス経路と比較します。job ivory_octopus_yd6by49kxf の完了後に URI_FOLDER ファイルを一覧表示、取得、ダウンロードするプログラムによる方法を文書化または実証できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
I have a training job that persists some files in an URI_FOLDER output.
How can I access those through the v2 SDK API after the job has finished?
1. job setup
The output is set up like this in the command:
job = command(
# ...
outputs=dict(
outputs=Output(type=AssetTypes.URI_FOLDER, mode='rw_mount'),
),
command="python training_script.py " +
"--outputs_dir ${{outputs.outputs}} " +
# ...other arguments...
)
This seems to work fine, the corresponding folder is mounted correctly and accessible in the training script.
2. training script
In the training script, I persist a dataframe like this:
parser.add_argument("--outputs_dir", dest="outputs_dir", default=DEFAULT_MODEL_DIR)
# ...
some_dataframe.to_csv(os.path.join(args.outputs_dir, 'some_dataframe.csv'), index=True)
This works fine.
3. resulting dataset
After the job has finished, the outputs are available as a dataset.
This is what is shown in Azure ML Studio in the "Overview" tab for job ivory_octopus_yd6by49kxf:

The dataset is successfully stored in the workspaceblobstore datastore. I checked it in the Azure ML Studio and it looks fine.
4. accessing the persisted data
After the job has finished, I access the run using a MlflowClient()
MLFLOW_TRACKING_URI = ml_client.workspaces.get(name=ml_client.workspace_name).mlflow_tracking_uri
mlflow.set_tracking_uri(MLFLOW_TRACKING_URI)
mlflow_client = MlflowClient()
mlflow_run = mlflow_client.get_run("ivory_octopus_yd6by49kxf")
or
run = ml_client.jobs.get('ivory_octopus_yd6by49kxf')
# returns NodeOutput class
How can I programmatically list / get / download the outputs connected to the job?
Thanks!
- 主要言語
- Jupyter Notebook
- スター
- 4.4k
- フォーク
- 2.6k
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Azure/MachineLearningNotebooks のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Azure/MachineLearningNotebooks#1975 · コメント 1 件 ·
-
duplicates オープン
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
Azure/MachineLearningNotebooks#1960 ·
-
machine オープン
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
Azure/MachineLearningNotebooks#1987 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
Azure/MachineLearningNotebooks#1985 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
Azure/MachineLearningNotebooks#1981 · リアクション 1 件 ·
Azure/MachineLearningNotebooks の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
robjhyndman/forecast#1220 ·
-
Add: New Channel オープンchannels:add check:passed
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
-
good first issue help wanted NLnet
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
collective/icalendar#1819 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
confluentinc/dbt-confluent#160 ·
-
inceleme-kuyrugu
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Greater-Turkiye/platform#107 ·