Azure / Azure/MachineLearningNotebooks

Model doesn't run after submit - local compute

Abierto
#1,938 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Jupyter Notebook
Estrellas
4.4k
Forks
2.6k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

I'm running the following from the example:

```
from azureml.core import Workspace
from azureml.core.experiment import Experiment
from azureml.core.environment import Environment
from azureml.core.conda_dependencies import CondaDependencies
from azureml.core import ScriptRunConfig, Experiment

ws = Workspace.get(name="ws_name", subscription_id='id', resource_group='rg')
myenv = Environment(name="myenv")
runconfig = ScriptRunConfig(source_directory="../src", script="train.py")
conda_dep = CondaDependencies()

conda_dep.add_conda_package("numpy==1.17.0")
conda_dep.add_pip_package("sklearn")
conda_dep.add_pip_package("joblib")

myenv.python.conda_dependencies=conda_dep

exp = Experiment(name="test-experiment", workspace = ws)
runconfig.run_config.target = "local"
runconfig.run_config.environment = myenv
run = exp.submit(runconfig)
```
train.py is the same as shown in the Tutorial. I'm expecting a `churn-model.pkl` to be saved in my local directory. However, that doesn't happen. When I check the Experiment section on the AzureML dashboard, the status shows 'starting'.

Or do I need an additional command in order to actually launch the job?

---
#### Document Details

⚠ *Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.*

* ID: eb938463-51c2-43f3-d528-76a07a28bec8
* Version Independent ID: e15753c0-6fe1-100a-0efc-08c1f845dc83
* Content: [Azure Machine Learning SDK for Python - Azure Machine Learning Python](https://learn.microsoft.com/en-us/python/api/overview/azure/ml/?view=azure-ml-py)
* Content Source: [AzureML-Docset/docs-ref-conceptual/index.md](https://github.com/MicrosoftDocs/MachineLearning-Python-pr/blob/live/AzureML-Docset/docs-ref-conceptual/index.md)
* Service: **machine-learning**
* Sub-service: **core**
* GitHub Login: @cjgronlund
* Microsoft Alias: **cgronlun**

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Comienza con el ejemplo referenciado y su train.py, y luego reproduce el envío local al destino usando la configuración mostrada de Workspace, Environment, ScriptRunConfig y Experiment. Comprueba por qué la ejecución permanece en “starting” y si se espera que churn-model.pkl esté en el directorio local; se considera terminado cuando el comportamiento esperado de la ejecución local y la ubicación del artefacto están documentados o corregidos.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
machine-learning, python
Área
cloud, machine-learning
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
30/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.