Class Objective
- java.lang.Object
-
- com.azure.resourcemanager.machinelearning.models.Objective
-
public final class Objective extends Object
Optimization objective.
-
-
Constructor Summary
Constructors Constructor Description Objective()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Goal
goal()
Get the goal property: [Required] Defines supported metric goals for hyperparameter tuning.String
primaryMetric()
Get the primaryMetric property: [Required] Name of the metric to optimize.void
validate()
Validates the instance.Objective
withGoal(Goal goal)
Set the goal property: [Required] Defines supported metric goals for hyperparameter tuning.Objective
withPrimaryMetric(String primaryMetric)
Set the primaryMetric property: [Required] Name of the metric to optimize.
-
-
-
Method Detail
-
goal
public Goal goal()
Get the goal property: [Required] Defines supported metric goals for hyperparameter tuning.- Returns:
- the goal value.
-
withGoal
public Objective withGoal(Goal goal)
Set the goal property: [Required] Defines supported metric goals for hyperparameter tuning.- Parameters:
goal
- the goal value to set.- Returns:
- the Objective object itself.
-
primaryMetric
public String primaryMetric()
Get the primaryMetric property: [Required] Name of the metric to optimize.- Returns:
- the primaryMetric value.
-
withPrimaryMetric
public Objective withPrimaryMetric(String primaryMetric)
Set the primaryMetric property: [Required] Name of the metric to optimize.- Parameters:
primaryMetric
- the primaryMetric value to set.- Returns:
- the Objective object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-