Azure / Azure/MachineLearningNotebooks

Clarify Use of `azureml.core.runconfig.DockerConfiguration`

未關閉
#1,483 7 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
ADO Compute doc-enhancement
主要語言
Jupyter Notebook
星號
4.4k
分支
2.6k
PR 合併指標
30 天內沒有已合併 PR

描述

@keijik @cody-dkdc

[In this example notebook](https://github.com/Azure/MachineLearningNotebooks/blob/master/how-to-use-azureml/ml-frameworks/fastai/fastai-with-custom-docker/fastai-with-custom-docker.ipynb), you are using deprecated code

```py
from azureml.core import Environment

fastai_env = Environment("fastai")
fastai_env.docker.enabled = True
```
I get the warning

```
'enabled' is deprecated. Please use the azureml.core.runconfig.DockerConfiguration object with the 'use_docker' param instead.
```

However, from [the docs](https://docs.microsoft.com/en-us/python/api/azureml-core/azureml.core.runconfig.dockerconfiguration?view=azure-ml-py) its a bit ambiguous on how to use it. It appears that the below code is incorrect. What is the correct way to use this instead? Can the documentation be improved? Also can you provide a better warning stating the version number at which this will be deprecated, or say that it will be deprecated in the future since it isn't deprecated as of right now?

```py
from azureml.core.runconfig import DockerConfiguration
dc = DockerConfiguration(use_docker=True)
fastai_env.docker = dc
```

The [documentation for this](https://docs.microsoft.com/en-us/python/api/azureml-core/azureml.core.runconfig.dockerconfiguration?view=azure-ml-py) doesn't really provide many hints on where to use this configuration correctly. Can an example be made for this?

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

先檢查 fastai-with-custom-docker.ipynb 範例和連結的 DockerConfiguration 文件,然後比較它們的使用方式和棄用措辭。完成的標準是範例和文件清楚地展示受支援的設定方式,且警告準確說明舊 API 何時被棄用。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
azure, jupyter-notebook, python
領域
cloud, documentation, machine-learning
Issue 類型
文件
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。