ImageSweepSettings Class
Sweep settings for all AutoML Image Verticals.
] :keyword early_termination: Type of early termination policy. :paramtype early_termination: Union[
~azure.mgmt.machinelearningservices.models.BanditPolicy, ~azure.mgmt.machinelearningservices.models.MedianStoppingPolicy, ~azure.mgmt.machinelearningservices.models.TruncationSelectionPolicy
]
- Inheritance
-
azure.ai.ml.entities._mixins.RestTranslatableMixinImageSweepSettings
Constructor
ImageSweepSettings(*, sampling_algorithm: str | Grid | Bayesian | Random, early_termination: EarlyTerminationPolicy | BanditPolicy | MedianStoppingPolicy | TruncationSelectionPolicy | None = None)
Keyword-Only Parameters
Name | Description |
---|---|
sampling_algorithm
|
Required. Type of the hyperparameter sampling. algorithms. Possible values include: "Grid", "Random", "Bayesian". |
early_termination
Required
|
|
Examples
Defining the sweep settings for an automl image job.
from azure.ai.ml import automl
from azure.ai.ml.sweep import BanditPolicy
image_sweep_settings = automl.ImageSweepSettings(
sampling_algorithm="Grid",
early_termination=BanditPolicy(evaluation_interval=2, slack_factor=0.05, delay_evaluation=6),
)
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Python
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