compute_target module

Classes for managing various compute target options.

Compute targets define your training compute environment, and can be either local, or remote resources in the cloud. Remote resources allow you to easily scale up or scale out your machine learning experimentation by taking advantage of accelerated CPU and GPU processing capabilities.

Classes

AbstractComputeTarget

An abstract class for a compute targets.

LocalTarget

A class to define the local machine as a compute target.

Functions

attach_legacy_compute_target(experiment, source_directory, compute_target)

Attaches a compute target to this project.

attach_legacy_compute_target(experiment, source_directory, compute_target)

Parameters

experiment
Experiment
source_directory
str
compute_target
str

A compute target object to attach.

Returns

None if the attach is successful, otherwise throws an exception.

is_compute_target_prepared(experiment, source_directory, run_config)

Check compute target is prepared.

Checks whether the compute target, specified in run_config, is already prepared or not for the specified run configuration.

is_compute_target_prepared(experiment, source_directory, run_config)

Parameters

experiment
Experiment
source_directory
str
run_config
str or RunConfiguration

The run configuration. This can be a run configuration name, as string, or a azureml.core.runconfig.RunConfiguration object.

Returns

True, if the compute target is prepared.

Return type

prepare_compute_target(experiment, source_directory, run_config)

Prepare the compute target.

Installs all the required packages for an experiment run based on run_config and custom_run_config.

prepare_compute_target(experiment, source_directory, run_config)

Parameters

experiment
Experiment
source_directory
str
run_config
str or RunConfiguration

The run configuration. This can be a run configuration name, as string, or a azureml.core.runconfig.RunConfiguration object.

Returns

A run object

Return type

azureml.core.experiment_run.ExperimentRun

remove_legacy_compute_target(experiment, source_directory, compute_target_name)

Remove a compute target from the project.

remove_legacy_compute_target(experiment, source_directory, compute_target_name)

Parameters

experiment
Experiment
source_directory
str
compute_target_name
str

Returns

None if the removal of the compute target is successful, otherwise throws an exception.

Return type