Objective Class
- java.
lang. Object - com.
azure. resourcemanager. machinelearning. models. Objective
- com.
Implements
public final class Objective
implements JsonSerializable<Objective>
Optimization objective.
Constructor Summary
| Constructor | Description |
|---|---|
| Objective() |
Creates an instance of Objective class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| static Objective |
fromJson(JsonReader jsonReader)
Reads an instance of Objective from the Json |
| Goal |
goal()
Get the goal property: [Required] Defines supported metric goals for hyperparameter tuning. |
| String |
primaryMetric()
Get the primary |
|
Json |
toJson(JsonWriter jsonWriter) |
| 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 primary |
Methods inherited from java.lang.Object
Constructor Details
Objective
public Objective()
Creates an instance of Objective class.
Method Details
fromJson
public static Objective fromJson(JsonReader jsonReader)
Reads an instance of Objective from the JsonReader.
Parameters:
Returns:
Throws:
goal
public Goal goal()
Get the goal property: [Required] Defines supported metric goals for hyperparameter tuning.
Returns:
primaryMetric
public String primaryMetric()
Get the primaryMetric property: [Required] Name of the metric to optimize.
Returns:
toJson
validate
public void validate()
Validates the instance.
withGoal
public Objective withGoal(Goal goal)
Set the goal property: [Required] Defines supported metric goals for hyperparameter tuning.
Parameters:
Returns:
withPrimaryMetric
public Objective withPrimaryMetric(String primaryMetric)
Set the primaryMetric property: [Required] Name of the metric to optimize.
Parameters:
Returns: