AutoMLImageConfig Class
Represents configuration for submitting an automated ML image experiment in Azure Machine Learning.
This configuration object contains and persists the parameters for configuring the experiment run, as well as the training data to be used at run time. For guidance on selecting your settings, see: https://docs.microsoft.com/en-us/azure/machine-learning/how-to-auto-train-image-models.
Create an AutoMLImageConfig.
- Inheritance
-
AutoMLImageConfig
Constructor
AutoMLImageConfig(task: ImageTask, compute_target: Any, training_data: TabularDataset, hyperparameter_sampling: HyperParameterSampling, iterations: int, max_concurrent_iterations: int | None = None, experiment_timeout_hours: float | int | None = None, early_termination_policy: EarlyTerminationPolicy | None = None, validation_data: TabularDataset | None = None, arguments: List[Any] | None = None, **kwargs: Any)
Parameters
- task
- <xref:ImageTask>
The type of task to run.
- compute_target
- Any
The Azure Machine Learning compute target to run the ML image experiment on. Only remote GPU computes with more than 12 GB of GPU memory are supported. See https://docs.microsoft.com/azure/machine-learning/how-to-auto-train-remote for more information on compute targets.
- training_data
- <xref:TabularDataset>
The training data to be used within the experiment.
- hyperparameter_sampling
- <xref:HyperParameterSampling>
Object containing the hyperparameter space, the sampling method, and in some cases additional properties for specific sampling classes.
- iterations
- int
The total number of different model and parameter combinations to test during an automated ML image experiment. If not specified, the default is 1 iteration.
Represents the maximum number of iterations that would be executed in parallel. The default value is the same as the number of iterations provided.
Maximum amount of time in hours that all iterations combined can take before the experiment terminates. Can be a decimal value like 0.25 representing 15 minutes. If not specified, the default experiment timeout is 6 days.
- early_termination_policy
- Optional[<xref:EarlyTerminationPolicy>]
Early termination policy use when using hyperparameter tuning with several iterations. An iteration is cancelled when the criteria of a specified policy are met.
- validation_data
- Optional[<xref:TabularDataset>]
The validation data to be used within the experiment.
Arguments to be passed to the remote script runs. Arguments are passed in name-value pairs and the name must be prefixed by a double dash.
- task
- <xref:ImageTask>
The type of task to run.
- compute_target
- Any
The Azure Machine Learning compute target to run the ML image experiment on. Only remote GPU computes with more than 12 GB of GPU memory are supported. See https://docs.microsoft.com/azure/machine-learning/how-to-auto-train-remote for more information on compute targets.
- training_data
- <xref:TabularDataset>
The training data to be used within the experiment.
- hyperparameter_sampling
- <xref:HyperParameterSampling>
Object containing the hyperparameter space, the sampling method, and in some cases additional properties for specific sampling classes.
- iterations
- int
The total number of different model and parameter combinations to test during an automated ML image experiment. If not specified, the default is 1 iteration.
Represents the maximum number of iterations that would be executed in parallel. The default value is the same as the number of iterations provided.
Maximum amount of time in hours that all iterations combined can take before the experiment terminates. Can be a decimal value like 0.25 representing 15 minutes. If not specified, the default experiment timeout is 6 days.
- early_termination_policy
- Optional[<xref:EarlyTerminationPolicy>]
Early termination policy use when using hyperparameter tuning with several iterations. An iteration is cancelled when the criteria of a specified policy are met.
- validation_data
- Optional[<xref:TabularDataset>]
The validation data to be used within the experiment.
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