Class EarlyTerminationPolicy
- java.lang.Object
-
- com.azure.resourcemanager.machinelearning.models.EarlyTerminationPolicy
-
- Direct Known Subclasses:
BanditPolicy
,MedianStoppingPolicy
,TruncationSelectionPolicy
public class EarlyTerminationPolicy extends Object
Early termination policies enable canceling poor-performing runs before they complete.
-
-
Constructor Summary
Constructors Constructor Description EarlyTerminationPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
delayEvaluation()
Get the delayEvaluation property: Number of intervals by which to delay the first evaluation.Integer
evaluationInterval()
Get the evaluationInterval property: Interval (number of runs) between policy evaluations.void
validate()
Validates the instance.EarlyTerminationPolicy
withDelayEvaluation(Integer delayEvaluation)
Set the delayEvaluation property: Number of intervals by which to delay the first evaluation.EarlyTerminationPolicy
withEvaluationInterval(Integer evaluationInterval)
Set the evaluationInterval property: Interval (number of runs) between policy evaluations.
-
-
-
Method Detail
-
delayEvaluation
public Integer delayEvaluation()
Get the delayEvaluation property: Number of intervals by which to delay the first evaluation.- Returns:
- the delayEvaluation value.
-
withDelayEvaluation
public EarlyTerminationPolicy withDelayEvaluation(Integer delayEvaluation)
Set the delayEvaluation property: Number of intervals by which to delay the first evaluation.- Parameters:
delayEvaluation
- the delayEvaluation value to set.- Returns:
- the EarlyTerminationPolicy object itself.
-
evaluationInterval
public Integer evaluationInterval()
Get the evaluationInterval property: Interval (number of runs) between policy evaluations.- Returns:
- the evaluationInterval value.
-
withEvaluationInterval
public EarlyTerminationPolicy withEvaluationInterval(Integer evaluationInterval)
Set the evaluationInterval property: Interval (number of runs) between policy evaluations.- Parameters:
evaluationInterval
- the evaluationInterval value to set.- Returns:
- the EarlyTerminationPolicy object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-