Class HyperParameterTuningJobConfig

    • Method Detail

      • strategyConfig

        public final HyperParameterTuningJobStrategyConfig strategyConfig()

        The configuration for the Hyperband optimization strategy. This parameter should be provided only if Hyperband is selected as the strategy for HyperParameterTuningJobConfig.

        Returns:
        The configuration for the Hyperband optimization strategy. This parameter should be provided only if Hyperband is selected as the strategy for HyperParameterTuningJobConfig .
      • resourceLimits

        public final ResourceLimits resourceLimits()

        The ResourceLimits object that specifies the maximum number of training and parallel training jobs that can be used for this hyperparameter tuning job.

        Returns:
        The ResourceLimits object that specifies the maximum number of training and parallel training jobs that can be used for this hyperparameter tuning job.
      • parameterRanges

        public final ParameterRanges parameterRanges()

        The ParameterRanges object that specifies the ranges of hyperparameters that this tuning job searches over to find the optimal configuration for the highest model performance against your chosen objective metric.

        Returns:
        The ParameterRanges object that specifies the ranges of hyperparameters that this tuning job searches over to find the optimal configuration for the highest model performance against your chosen objective metric.
      • trainingJobEarlyStoppingType

        public final TrainingJobEarlyStoppingType trainingJobEarlyStoppingType()

        Specifies whether to use early stopping for training jobs launched by the hyperparameter tuning job. Because the Hyperband strategy has its own advanced internal early stopping mechanism, TrainingJobEarlyStoppingType must be OFF to use Hyperband. This parameter can take on one of the following values (the default value is OFF):

        OFF

        Training jobs launched by the hyperparameter tuning job do not use early stopping.

        AUTO

        SageMaker stops training jobs launched by the hyperparameter tuning job when they are unlikely to perform better than previously completed training jobs. For more information, see Stop Training Jobs Early.

        If the service returns an enum value that is not available in the current SDK version, trainingJobEarlyStoppingType will return TrainingJobEarlyStoppingType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from trainingJobEarlyStoppingTypeAsString().

        Returns:
        Specifies whether to use early stopping for training jobs launched by the hyperparameter tuning job. Because the Hyperband strategy has its own advanced internal early stopping mechanism, TrainingJobEarlyStoppingType must be OFF to use Hyperband. This parameter can take on one of the following values (the default value is OFF):

        OFF

        Training jobs launched by the hyperparameter tuning job do not use early stopping.

        AUTO

        SageMaker stops training jobs launched by the hyperparameter tuning job when they are unlikely to perform better than previously completed training jobs. For more information, see Stop Training Jobs Early.

        See Also:
        TrainingJobEarlyStoppingType
      • trainingJobEarlyStoppingTypeAsString

        public final String trainingJobEarlyStoppingTypeAsString()

        Specifies whether to use early stopping for training jobs launched by the hyperparameter tuning job. Because the Hyperband strategy has its own advanced internal early stopping mechanism, TrainingJobEarlyStoppingType must be OFF to use Hyperband. This parameter can take on one of the following values (the default value is OFF):

        OFF

        Training jobs launched by the hyperparameter tuning job do not use early stopping.

        AUTO

        SageMaker stops training jobs launched by the hyperparameter tuning job when they are unlikely to perform better than previously completed training jobs. For more information, see Stop Training Jobs Early.

        If the service returns an enum value that is not available in the current SDK version, trainingJobEarlyStoppingType will return TrainingJobEarlyStoppingType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from trainingJobEarlyStoppingTypeAsString().

        Returns:
        Specifies whether to use early stopping for training jobs launched by the hyperparameter tuning job. Because the Hyperband strategy has its own advanced internal early stopping mechanism, TrainingJobEarlyStoppingType must be OFF to use Hyperband. This parameter can take on one of the following values (the default value is OFF):

        OFF

        Training jobs launched by the hyperparameter tuning job do not use early stopping.

        AUTO

        SageMaker stops training jobs launched by the hyperparameter tuning job when they are unlikely to perform better than previously completed training jobs. For more information, see Stop Training Jobs Early.

        See Also:
        TrainingJobEarlyStoppingType
      • tuningJobCompletionCriteria

        public final TuningJobCompletionCriteria tuningJobCompletionCriteria()

        The tuning job's completion criteria.

        Returns:
        The tuning job's completion criteria.
      • randomSeed

        public final Integer randomSeed()

        A value used to initialize a pseudo-random number generator. Setting a random seed and using the same seed later for the same tuning job will allow hyperparameter optimization to find more a consistent hyperparameter configuration between the two runs.

        Returns:
        A value used to initialize a pseudo-random number generator. Setting a random seed and using the same seed later for the same tuning job will allow hyperparameter optimization to find more a consistent hyperparameter configuration between the two runs.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)