Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model doesn't run after submit - local compute #1938

Open
matsuobasho opened this issue Sep 4, 2023 · 0 comments
Open

Model doesn't run after submit - local compute #1938

matsuobasho opened this issue Sep 4, 2023 · 0 comments

Comments

@matsuobasho
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant