From da225e116e75388c668aad741b2b2bcb68b94b81 Mon Sep 17 00:00:00 2001 From: Sheri Gilley Date: Thu, 3 Jan 2019 08:02:35 -0600 Subject: [PATCH] new code --- .../runconfig.py | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 ignore/doc-qa/how-to-set-up-training-targets/runconfig.py diff --git a/ignore/doc-qa/how-to-set-up-training-targets/runconfig.py b/ignore/doc-qa/how-to-set-up-training-targets/runconfig.py new file mode 100644 index 00000000..2c32a003 --- /dev/null +++ b/ignore/doc-qa/how-to-set-up-training-targets/runconfig.py @@ -0,0 +1,23 @@ +# +from azureml.core.runconfig import RunConfiguration +from azureml.core.conda_dependencies import CondaDependencies + +run_system_managed = RunConfiguration() + +# Specify the conda dependencies with scikit-learn +run_system_managed.environment.python.conda_dependencies = CondaDependencies.create(conda_packages=['scikit-learn']) +# +print(run_system_managed) + + +# +from azureml.core.runconfig import RunConfiguration + +run_user_managed = RunConfiguration() +run_user_managed.environment.python.user_managed_dependencies = True + +# Choose a specific Python environment by pointing to a Python path. For example: +# run_config.environment.python.interpreter_path = '/home/ninghai/miniconda3/envs/sdk2/bin/python' +# +print(run_user_managed) +