Class Objective


  • public final class Objective
    extends Object
    Optimization objective.
    • Constructor Detail

      • Objective

        public Objective()
    • 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.