Class MedianStoppingPolicy
java.lang.Object
com.azure.resourcemanager.machinelearning.models.EarlyTerminationPolicy
com.azure.resourcemanager.machinelearning.models.MedianStoppingPolicy
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EarlyTerminationPolicy>
Defines an early termination policy based on running averages of the primary metric of all runs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MedianStoppingPolicyfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MedianStoppingPolicy from the JsonReader.Get the policyType property: [Required] Name of policy configuration.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDelayEvaluation(Integer delayEvaluation) Set the delayEvaluation property: Number of intervals by which to delay the first evaluation.withEvaluationInterval(Integer evaluationInterval) Set the evaluationInterval property: Interval (number of runs) between policy evaluations.Methods inherited from class com.azure.resourcemanager.machinelearning.models.EarlyTerminationPolicy
delayEvaluation, evaluationIntervalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
MedianStoppingPolicy
public MedianStoppingPolicy()Creates an instance of MedianStoppingPolicy class.
-
-
Method Details
-
policyType
Get the policyType property: [Required] Name of policy configuration.- Overrides:
policyTypein classEarlyTerminationPolicy- Returns:
- the policyType value.
-
withEvaluationInterval
Set the evaluationInterval property: Interval (number of runs) between policy evaluations.- Overrides:
withEvaluationIntervalin classEarlyTerminationPolicy- Parameters:
evaluationInterval- the evaluationInterval value to set.- Returns:
- the EarlyTerminationPolicy object itself.
-
withDelayEvaluation
Set the delayEvaluation property: Number of intervals by which to delay the first evaluation.- Overrides:
withDelayEvaluationin classEarlyTerminationPolicy- Parameters:
delayEvaluation- the delayEvaluation value to set.- Returns:
- the EarlyTerminationPolicy object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classEarlyTerminationPolicy- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<EarlyTerminationPolicy>- Overrides:
toJsonin classEarlyTerminationPolicy- Throws:
IOException
-
fromJson
public static MedianStoppingPolicy fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of MedianStoppingPolicy from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of MedianStoppingPolicy if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the MedianStoppingPolicy.
-