compute_target Module
Contains functionality for compute targets not managed by Azure Machine Learning.
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.
For information on compute targets managed by Azure Machine Learning, see the ComputeTarget class. For more information, see What are compute targets in Azure Machine Learning?
Classes
AbstractComputeTarget |
An abstract class for compute targets not managed by Azure Machine Learning. Class AbstractComputeTarget constructor. |
LocalTarget |
A class to define the local machine as a compute target. Set up local target. |
Functions
attach_legacy_compute_target
Attaches a compute target to this project.
attach_legacy_compute_target(experiment, source_directory, compute_target)
Parameters
- experiment
- Experiment
- source_directory
- str
Returns
None if the attach is successful, otherwise throws an exception.
is_compute_target_prepared
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
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
remove_legacy_compute_target
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for