Class TruncationSelectionPolicy
- java.lang.Object
-
- com.azure.resourcemanager.machinelearning.models.EarlyTerminationPolicy
-
- com.azure.resourcemanager.machinelearning.models.TruncationSelectionPolicy
-
public final class TruncationSelectionPolicy extends EarlyTerminationPolicy
Defines an early termination policy that cancels a given percentage of runs at each evaluation interval.
-
-
Constructor Summary
Constructors Constructor Description TruncationSelectionPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
truncationPercentage()
Get the truncationPercentage property: The percentage of runs to cancel at each evaluation interval.void
validate()
Validates the instance.TruncationSelectionPolicy
withDelayEvaluation(Integer delayEvaluation)
Set the delayEvaluation property: Number of intervals by which to delay the first evaluation.TruncationSelectionPolicy
withEvaluationInterval(Integer evaluationInterval)
Set the evaluationInterval property: Interval (number of runs) between policy evaluations.TruncationSelectionPolicy
withTruncationPercentage(Integer truncationPercentage)
Set the truncationPercentage property: The percentage of runs to cancel at each evaluation interval.-
Methods inherited from class com.azure.resourcemanager.machinelearning.models.EarlyTerminationPolicy
delayEvaluation, evaluationInterval
-
-
-
-
Method Detail
-
truncationPercentage
public Integer truncationPercentage()
Get the truncationPercentage property: The percentage of runs to cancel at each evaluation interval.- Returns:
- the truncationPercentage value.
-
withTruncationPercentage
public TruncationSelectionPolicy withTruncationPercentage(Integer truncationPercentage)
Set the truncationPercentage property: The percentage of runs to cancel at each evaluation interval.- Parameters:
truncationPercentage
- the truncationPercentage value to set.- Returns:
- the TruncationSelectionPolicy object itself.
-
withDelayEvaluation
public TruncationSelectionPolicy withDelayEvaluation(Integer delayEvaluation)
Set the delayEvaluation property: Number of intervals by which to delay the first evaluation.- Overrides:
withDelayEvaluation
in classEarlyTerminationPolicy
- Parameters:
delayEvaluation
- the delayEvaluation value to set.- Returns:
- the EarlyTerminationPolicy object itself.
-
withEvaluationInterval
public TruncationSelectionPolicy withEvaluationInterval(Integer evaluationInterval)
Set the evaluationInterval property: Interval (number of runs) between policy evaluations.- Overrides:
withEvaluationInterval
in classEarlyTerminationPolicy
- Parameters:
evaluationInterval
- the evaluationInterval value to set.- Returns:
- the EarlyTerminationPolicy object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classEarlyTerminationPolicy
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-