Azure / Azure/MachineLearningNotebooks
Clarify Use of `azureml.core.runconfig.DockerConfiguration`
- 主要言語
- 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