From 6995c086ffad666e7678cb2fb92db7ddc7723ff2 Mon Sep 17 00:00:00 2001 From: Sheri Gilley Date: Thu, 3 Jan 2019 22:39:06 -0600 Subject: [PATCH] change snippet names --- ignore/doc-qa/how-to-set-up-training-targets/Local.py | 4 ++-- .../doc-qa/how-to-set-up-training-targets/amlcompute.py | 4 ++-- .../doc-qa/how-to-set-up-training-targets/amlcompute2.py | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ignore/doc-qa/how-to-set-up-training-targets/Local.py b/ignore/doc-qa/how-to-set-up-training-targets/Local.py index 545db6a5..baf0d20d 100644 --- a/ignore/doc-qa/how-to-set-up-training-targets/Local.py +++ b/ignore/doc-qa/how-to-set-up-training-targets/Local.py @@ -5,7 +5,7 @@ import azureml.core print("SDK version:", azureml.core.VERSION) -# +# from azureml.core.runconfig import RunConfiguration # Edit a run configuration property on the fly. @@ -15,7 +15,7 @@ run_local.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' -# +# from azureml.core import Workspace ws = Workspace.from_config() diff --git a/ignore/doc-qa/how-to-set-up-training-targets/amlcompute.py b/ignore/doc-qa/how-to-set-up-training-targets/amlcompute.py index 7ab08e69..4658aab1 100644 --- a/ignore/doc-qa/how-to-set-up-training-targets/amlcompute.py +++ b/ignore/doc-qa/how-to-set-up-training-targets/amlcompute.py @@ -18,7 +18,7 @@ script_folder= "./" exp = Experiment(workspace=ws, name=experiment_name) -# +# from azureml.core.compute import ComputeTarget, AmlCompute # First, list the supported VM families for Azure Machine Learning Compute @@ -34,7 +34,7 @@ run_temp_compute.target = "amlcompute" # AmlCompute is created in the same region as your workspace # Set the VM size for AmlCompute from the list of supported_vmsizes run_temp_compute.amlcompute.vm_size = 'STANDARD_D2_V2' -# +# # Submit the experiment using the run configuration diff --git a/ignore/doc-qa/how-to-set-up-training-targets/amlcompute2.py b/ignore/doc-qa/how-to-set-up-training-targets/amlcompute2.py index f8fc9d08..22c14c79 100644 --- a/ignore/doc-qa/how-to-set-up-training-targets/amlcompute2.py +++ b/ignore/doc-qa/how-to-set-up-training-targets/amlcompute2.py @@ -16,7 +16,7 @@ script_folder= "./" exp = Experiment(workspace=ws, name=experiment_name) -# +# from azureml.core.compute import ComputeTarget, AmlCompute from azureml.core.compute_target import ComputeTargetException @@ -33,9 +33,9 @@ except ComputeTargetException: cpu_cluster = ComputeTarget.create(ws, cpu_cluster_name, compute_config) cpu_cluster.wait_for_completion(show_output=True) -# +# -# +# from azureml.core.runconfig import RunConfiguration from azureml.core.conda_dependencies import CondaDependencies from azureml.core.runconfig import DEFAULT_CPU_IMAGE @@ -60,7 +60,7 @@ run_amlcompute.auto_prepare_environment = True # Specify CondaDependencies obj, add necessary packages run_amlcompute.environment.python.conda_dependencies = CondaDependencies.create(conda_packages=['scikit-learn']) -# +# # Submit the experiment using the run configuration #