An Azure machine learning service for building and deploying models.
Hello @ben wu
Thanks for reaching out to us, there is the code sample from engineering team
from azureml.core import ScriptRunConfig
input_data=titanic_ds.as_named_input('input_data').as_mount()
src = ScriptRunConfig(source_directory=script_folder,
script='train_titanic.py',
compute_target=compute_target)
src.run_config.data = {input_data.name: input_data }
# Submit the run configuration for your training run
run = experiment.submit(src)
run.wait_for_completion(show_output=True)
In your script, you can get the mounted path via environment variable, which is the value you specified in as_named_input. For the sample code above, the environment variable will be input_data.
I hopet this helps.
Regards,
Yutong
-Please kindly accept the answer if you feel helpful to support the community, thanks a lot.