Azure / Azure/MachineLearningNotebooks

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

Aberta
#1,483 7 comentários 0 reações 0 responsáveis Ver no GitHub
ADO Compute doc-enhancement
Linguagem predominante
Jupyter Notebook
Estrelas
4.4k
Forks
2.6k
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

@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?

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Direção de pesquisa

Comece inspecionando o exemplo fastai-with-custom-docker.ipynb e a documentação vinculada de DockerConfiguration; em seguida, compare o uso e a redação sobre depreciação. A tarefa estará concluída quando o exemplo e a documentação mostrarem claramente a abordagem de configuração compatível e o aviso explicar com precisão quando a API antiga está obsoleta.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
azure, jupyter-notebook, python
Domínio
cloud, documentation, machine-learning
Tipo de issue
Documentação
Dificuldade
3/5
Tempo estimado
1-2 dias
Status de atividade
Estagnada
Clareza
Razoavelmente clara
Facilidade para iniciantes
35/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.