Azure / Azure/MachineLearningNotebooks

AML: Clarify what DockerConfiguration does in `train-on-amlcompute.ipynb`

オープン
#1,485 コメント 2 件 リアクション 1 件 担当者 1 名 @saachigopal が担当を希望しています GitHub で見る
ADO doc-enhancement Environments MLOps
主要言語
Jupyter Notebook
スター
4.4k
フォーク
2.6k
PR マージ指標
30日以内にマージされた PR はありません

説明

@keijik @cody-dkdc @gregce

In [this notebook](https://github.com/Azure/MachineLearningNotebooks/blob/master/how-to-use-azureml/training/train-on-amlcompute/train-on-amlcompute.ipynb) we are setting a docker configuration, and later passing that to the `docker_runtime` parameter

```py
from azureml.core import Environment
from azureml.core.runconfig import DockerConfiguration
from azureml.core.conda_dependencies import CondaDependencies

myenv = Environment("myenv")
myenv.python.conda_dependencies = CondaDependencies.create(conda_packages=['scikit-learn', 'packaging'])
# Enable Docker
docker_config = DockerConfiguration(use_docker=True)

....
from azureml.core import ScriptRunConfig
src = ScriptRunConfig(source_directory=project_folder,
script='train.py',
compute_target=cpu_cluster,
environment=myenv,
docker_runtime_config=docker_config)

run = experiment.submit(config=src)
```

Since we are using conda dependencies and are not specifying a base image, what is Docker doing exactly then?

The example works just fine if we omit the `docker_config` completely. So what is this example trying to show? What is the difference between passing this config and not passing it in practice?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。