jccantre
10/1/2019 - 5:53 PM

Submit the Training Job to the Compute Cluster

from azureml.core import ScriptRunConfig
from azureml.core.runconfig import DEFAULT_CPU_IMAGE

src = ScriptRunConfig(source_directory=script_folder, script='train.py')

# Set compute target to the one created in previous step
src.run_config.target = cpu_cluster.name

# Set environment
src.run_config.environment = fwrk
 
run = exp.submit(config=src)
run