Files
MachineLearningNotebooks/tutorials/get-started-day1/IDE-users/03-run-hello.py
2020-09-29 21:09:55 +01:00

14 lines
410 B
Python

# 03-run-hello.py
from azureml.core import Workspace, Experiment, ScriptRunConfig
ws = Workspace.from_config()
experiment = Experiment(workspace=ws, name='day1-experiment-hello')
config = ScriptRunConfig(source_directory='./src',
script='hello.py',
compute_target='cpu-cluster')
run = experiment.submit(config)
aml_url = run.get_portal_url()
print(aml_url)