File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
ignore/doc-qa/how-to-set-up-training-targets Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 1+ # <system-managed>
2+ from azureml .core .runconfig import RunConfiguration
3+ from azureml .core .conda_dependencies import CondaDependencies
4+
5+ run_system_managed = RunConfiguration ()
6+
7+ # Specify the conda dependencies with scikit-learn
8+ run_system_managed .environment .python .conda_dependencies = CondaDependencies .create (conda_packages = ['scikit-learn' ])
9+ # </system-managed>
10+ print (run_system_managed )
11+
12+
13+ # <user-managed>
14+ from azureml .core .runconfig import RunConfiguration
15+
16+ run_user_managed = RunConfiguration ()
17+ run_user_managed .environment .python .user_managed_dependencies = True
18+
19+ # Choose a specific Python environment by pointing to a Python path. For example:
20+ # run_config.environment.python.interpreter_path = '/home/ninghai/miniconda3/envs/sdk2/bin/python'
21+ # </user-managed>
22+ print (run_user_managed )
23+
You can’t perform that action at this time.
0 commit comments