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),
)
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for Python