[azureml python sdk v2] access files in URI_FOLDER output after job has finished?
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- azure, jupyter-notebook, python
- Lĩnh vực
- data, machine-learning
Hướng nghiên cứu
Bắt đầu với các API job và NodeOutput của Azure ML v2 SDK được nêu trong issue, sau đó so sánh chúng với đường dẫn truy cập MlflowClient. Công việc được xem là hoàn tất khi đã ghi lại hoặc minh họa được một cách thức lập trình để liệt kê, truy xuất và tải xuống các tệp URI_FOLDER sau khi job ivory_octopus_yd6by49kxf hoàn tất.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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!
- Ngôn ngữ chính
- Jupyter Notebook
- Star
- 4.4k
- Fork
- 2.6k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Azure/MachineLearningNotebooks
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Azure/MachineLearningNotebooks#1975 · 1 bình luận ·
-
duplicates Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
Azure/MachineLearningNotebooks#1960 ·
-
machine Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 10/100
Azure/MachineLearningNotebooks#1987 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Azure/MachineLearningNotebooks#1985 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
Azure/MachineLearningNotebooks#1981 · 1 reaction ·
Tất cả issue của Azure/MachineLearningNotebooks
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
robjhyndman/forecast#1220 ·
-
Add: New Channel Đang mởchannels:add check:passed
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
-
good first issue help wanted NLnet
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
collective/icalendar#1819 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
confluentinc/dbt-confluent#160 ·
-
inceleme-kuyrugu
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Greater-Turkiye/platform#107 ·