File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
ignore/doc-qa/how-to-set-up-training-targets Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 1212run_local = RunConfiguration ()
1313
1414run_local .environment .python .user_managed_dependencies = True
15-
16- # Choose a specific Python environment by pointing to a Python path. For example:
17- # run_config.environment.python.interpreter_path = '/home/ninghai/miniconda3/envs/sdk2/bin/python'
1815#</run_local>
1916
2017from azureml .core import Workspace
Original file line number Diff line number Diff line change 1- # <systemManaged>
1+ # Code for What's a run configuration
2+
3+ # <run_system_managed>
24from azureml .core .runconfig import RunConfiguration
35from azureml .core .conda_dependencies import CondaDependencies
46
57run_system_managed = RunConfiguration ()
68
79# Specify the conda dependencies with scikit-learn
810run_system_managed .environment .python .conda_dependencies = CondaDependencies .create (conda_packages = ['scikit-learn' ])
9- # </systemManaged >
11+ # </run_system_managed >
1012print (run_system_managed )
1113
1214
13- # <user_managed >
15+ # <run_user_managed >
1416from azureml .core .runconfig import RunConfiguration
1517
1618run_user_managed = RunConfiguration ()
1719run_user_managed .environment .python .user_managed_dependencies = True
1820
1921# Choose a specific Python environment by pointing to a Python path. For example:
2022# run_config.environment.python.interpreter_path = '/home/ninghai/miniconda3/envs/sdk2/bin/python'
21- # </user_managed >
23+ # </run_user_managed >
2224print (run_user_managed )
2325
You can’t perform that action at this time.
0 commit comments