Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
change snippet names
  • Loading branch information
sdgilley committed Jan 4, 2019
commit 6995c086ffad666e7678cb2fb92db7ddc7723ff2
4 changes: 2 additions & 2 deletions ignore/doc-qa/how-to-set-up-training-targets/Local.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

print("SDK version:", azureml.core.VERSION)

#<local_env>
#<run_local>
from azureml.core.runconfig import RunConfiguration

# Edit a run configuration property on the fly.
Expand All @@ -15,7 +15,7 @@

# 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'
#</local_env>
#</run_local>

from azureml.core import Workspace
ws = Workspace.from_config()
Expand Down
4 changes: 2 additions & 2 deletions ignore/doc-qa/how-to-set-up-training-targets/amlcompute.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
exp = Experiment(workspace=ws, name=experiment_name)


#<amlcompute_temp>
#<run_temp_compute>
from azureml.core.compute import ComputeTarget, AmlCompute

# First, list the supported VM families for Azure Machine Learning Compute
Expand All @@ -34,7 +34,7 @@
# 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'
#</amlcompute_temp>
#</run_temp_compute>


# Submit the experiment using the run configuration
Expand Down
8 changes: 4 additions & 4 deletions ignore/doc-qa/how-to-set-up-training-targets/amlcompute2.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

exp = Experiment(workspace=ws, name=experiment_name)

#<cpu_basic>
#<cpu_cluster>
from azureml.core.compute import ComputeTarget, AmlCompute
from azureml.core.compute_target import ComputeTargetException

Expand All @@ -33,9 +33,9 @@
cpu_cluster = ComputeTarget.create(ws, cpu_cluster_name, compute_config)

cpu_cluster.wait_for_completion(show_output=True)
#</cpu_basic>
#</cpu_cluster>

#<aml_runconfig>
#<run_amlcompute>
from azureml.core.runconfig import RunConfiguration
from azureml.core.conda_dependencies import CondaDependencies
from azureml.core.runconfig import DEFAULT_CPU_IMAGE
Expand All @@ -60,7 +60,7 @@

# Specify CondaDependencies obj, add necessary packages
run_amlcompute.environment.python.conda_dependencies = CondaDependencies.create(conda_packages=['scikit-learn'])
#</aml_runconfig>
#</run_amlcompute>

# Submit the experiment using the run configuration
#<amlcompute_submit>
Expand Down