Azure / Azure/MachineLearningNotebooks

Retrieve Best Model Using HyperDriveStepRun Within Pipeline

未关闭
#1,457 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
ADO Pipelines product-issue
主要语言
Jupyter Notebook
星标
4.4k
派生
2.6k
PR 合并指标
30 天内没有已合并 PR

描述

I'm facing an issue with `HyperDriveStepRun`. Have been using `HyperDriveStepRun` to retrieve the best model in a pipeline. However it's recently been throwing a Service invocation timed out error. Somewhat puzzled as the same pipeline was working in previous runs. The last I ran the pipeline was in Mar 2021 so was expecting it to work. Would you have any idea what the error means?

The pipeline:

![Screenshot 2021-04-28 at 9 58 55 AM](https://user-images.githubusercontent.com/32608788/116336399-0f50eb00-a80b-11eb-83fb-9121662028e7.png)

Step 3, `hyperdrive_save_best_model.py`

![Screenshot 2021-04-28 at 10 06 36 AM](https://user-images.githubusercontent.com/32608788/116336418-17a92600-a80b-11eb-82bd-ab4e51793d52.png)

The error is thrown in Step 3 at line
`step_run = HyperDriveStepRun(step_run=pipeline_run.find_step_run('model_training_with_hyperdrive')[0])`
![Screenshot 2021-04-28 at 10 09 48 AM](https://user-images.githubusercontent.com/32608788/116336465-2f80aa00-a80b-11eb-97fa-2f619175d62a.png)

I'm able to find the step in the pipeline by running `pipeline_run.find_step_run('model_training_with_hyperdrive')[0].get_details()` which returns the output below

`{'runId': '81afda1d-e09a-4b66-9916-a70d31fe5aaf', 'status': 'Completed', 'startTimeUtc': '2021-04-26T10:04:55.388077Z', 'endTimeUtc': '2021-04-26T12:02:13.912549Z', 'properties': {'ContentSnapshotId': 'f60b2327-8e65-4245-ae9d-ad1d15052db9', 'StepType': 'HyperDriveStep', 'ComputeTargetType': 'HyperDrive', 'azureml.moduleid': '1997d65f-e755-4b48-b7b6-802cebe0e932', 'azureml.runsource': 'azureml.StepRun', 'azureml.nodeid': '1b54a211', 'azureml.pipelinerunid': '4305e2b4-5695-4736-b081-6710b3e7cb64'}, 'inputDatasets': [], 'logFiles': {'logs/azureml/executionlogs.txt': 'https://cerespalmml0992777240.blob.core.windows.net/azureml/ExperimentRun/dcid.81afda1d-e09a-4b66-9916-a70d31fe5aaf/logs/azureml/executionlogs.txt?sv=2019-02-02&sr=b&sig=fQHeUuUTSKkh7RXUMDIr59sqvwXhzWVPBNXp4vaQ%2F%2F4%3D&st=2021-04-26T11%3A57%3A26Z&se=2021-04-26T20%3A07%3A26Z&sp=r', 'logs/azureml/stderrlogs.txt': 'https://cerespalmml0992777240.blob.core.windows.net/azureml/ExperimentRun/dcid.81afda1d-e09a-4b66-9916-a70d31fe5aaf/logs/azureml/stderrlogs.txt?sv=2019-02-02&sr=b&sig=Re57T4Nx1MERInO8xXTGQ7gY%2BFmxfpQKklTPSbV40ig%3D&st=2021-04-26T11%3A57%3A26Z&se=2021-04-26T20%3A07%3A26Z&sp=r', 'logs/azureml/stdoutlogs.txt': 'https://cerespalmml0992777240.blob.core.windows.net/azureml/ExperimentRun/dcid.81afda1d-e09a-4b66-9916-a70d31fe5aaf/logs/azureml/stdoutlogs.txt?sv=2019-02-02&sr=b&sig=cQ5eMV8tG%2BsmJDAd9AYvtNkvVssq3YdcP4CGIsQn6MA%3D&st=2021-04-26T11%3A57%3A26Z&se=2021-04-26T20%3A07%3A26Z&sp=r'}}`

_Originally posted by @julianaddison in https://github.com/Azure/MachineLearningNotebooks/issues/269#issuecomment-828092204_

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。