/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.sagemaker.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Specifies ranges of integer, continuous, and categorical hyperparameters that a hyperparameter tuning job searches. * The hyperparameter tuning job launches training jobs with hyperparameter values within these ranges to find the * combination of values that result in the training job with the best performance as measured by the objective metric * of the hyperparameter tuning job. *
*
* The maximum number of items specified for Array Members
refers to the maximum number of hyperparameters
* for each range and also the maximum for the hyperparameter tuning job itself. That is, the sum of the number of
* hyperparameters for all the ranges can't exceed the maximum number specified.
*
* The array of * IntegerParameterRange objects that specify ranges of integer hyperparameters that a hyperparameter tuning job * searches. *
*/ private java.util.List* The array of ContinuousParameterRange objects that specify ranges of continuous hyperparameters that a hyperparameter * tuning job searches. *
*/ private java.util.List* The array of CategoricalParameterRange objects that specify ranges of categorical hyperparameters that a hyperparameter * tuning job searches. *
*/ private java.util.List* A list containing hyperparameter names and example values to be used by Autotune to determine optimal ranges for * your tuning job. *
*/ private java.util.List* The array of * IntegerParameterRange objects that specify ranges of integer hyperparameters that a hyperparameter tuning job * searches. *
* * @return The array of IntegerParameterRange objects that specify ranges of integer hyperparameters that a hyperparameter * tuning job searches. */ public java.util.List* The array of * IntegerParameterRange objects that specify ranges of integer hyperparameters that a hyperparameter tuning job * searches. *
* * @param integerParameterRanges * The array of IntegerParameterRange objects that specify ranges of integer hyperparameters that a hyperparameter * tuning job searches. */ public void setIntegerParameterRanges(java.util.Collection* The array of * IntegerParameterRange objects that specify ranges of integer hyperparameters that a hyperparameter tuning job * searches. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setIntegerParameterRanges(java.util.Collection)} or * {@link #withIntegerParameterRanges(java.util.Collection)} if you want to override the existing values. *
* * @param integerParameterRanges * The array of IntegerParameterRange objects that specify ranges of integer hyperparameters that a hyperparameter * tuning job searches. * @return Returns a reference to this object so that method calls can be chained together. */ public ParameterRanges withIntegerParameterRanges(IntegerParameterRange... integerParameterRanges) { if (this.integerParameterRanges == null) { setIntegerParameterRanges(new java.util.ArrayList* The array of * IntegerParameterRange objects that specify ranges of integer hyperparameters that a hyperparameter tuning job * searches. *
* * @param integerParameterRanges * The array of IntegerParameterRange objects that specify ranges of integer hyperparameters that a hyperparameter * tuning job searches. * @return Returns a reference to this object so that method calls can be chained together. */ public ParameterRanges withIntegerParameterRanges(java.util.Collection* The array of ContinuousParameterRange objects that specify ranges of continuous hyperparameters that a hyperparameter * tuning job searches. *
* * @return The array of ContinuousParameterRange objects that specify ranges of continuous hyperparameters that a * hyperparameter tuning job searches. */ public java.util.List* The array of ContinuousParameterRange objects that specify ranges of continuous hyperparameters that a hyperparameter * tuning job searches. *
* * @param continuousParameterRanges * The array of ContinuousParameterRange objects that specify ranges of continuous hyperparameters that a * hyperparameter tuning job searches. */ public void setContinuousParameterRanges(java.util.Collection* The array of ContinuousParameterRange objects that specify ranges of continuous hyperparameters that a hyperparameter * tuning job searches. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setContinuousParameterRanges(java.util.Collection)} or * {@link #withContinuousParameterRanges(java.util.Collection)} if you want to override the existing values. *
* * @param continuousParameterRanges * The array of ContinuousParameterRange objects that specify ranges of continuous hyperparameters that a * hyperparameter tuning job searches. * @return Returns a reference to this object so that method calls can be chained together. */ public ParameterRanges withContinuousParameterRanges(ContinuousParameterRange... continuousParameterRanges) { if (this.continuousParameterRanges == null) { setContinuousParameterRanges(new java.util.ArrayList* The array of ContinuousParameterRange objects that specify ranges of continuous hyperparameters that a hyperparameter * tuning job searches. *
* * @param continuousParameterRanges * The array of ContinuousParameterRange objects that specify ranges of continuous hyperparameters that a * hyperparameter tuning job searches. * @return Returns a reference to this object so that method calls can be chained together. */ public ParameterRanges withContinuousParameterRanges(java.util.Collection* The array of CategoricalParameterRange objects that specify ranges of categorical hyperparameters that a hyperparameter * tuning job searches. *
* * @return The array of CategoricalParameterRange objects that specify ranges of categorical hyperparameters that a * hyperparameter tuning job searches. */ public java.util.List* The array of CategoricalParameterRange objects that specify ranges of categorical hyperparameters that a hyperparameter * tuning job searches. *
* * @param categoricalParameterRanges * The array of CategoricalParameterRange objects that specify ranges of categorical hyperparameters that a * hyperparameter tuning job searches. */ public void setCategoricalParameterRanges(java.util.Collection* The array of CategoricalParameterRange objects that specify ranges of categorical hyperparameters that a hyperparameter * tuning job searches. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setCategoricalParameterRanges(java.util.Collection)} or * {@link #withCategoricalParameterRanges(java.util.Collection)} if you want to override the existing values. *
* * @param categoricalParameterRanges * The array of CategoricalParameterRange objects that specify ranges of categorical hyperparameters that a * hyperparameter tuning job searches. * @return Returns a reference to this object so that method calls can be chained together. */ public ParameterRanges withCategoricalParameterRanges(CategoricalParameterRange... categoricalParameterRanges) { if (this.categoricalParameterRanges == null) { setCategoricalParameterRanges(new java.util.ArrayList* The array of CategoricalParameterRange objects that specify ranges of categorical hyperparameters that a hyperparameter * tuning job searches. *
* * @param categoricalParameterRanges * The array of CategoricalParameterRange objects that specify ranges of categorical hyperparameters that a * hyperparameter tuning job searches. * @return Returns a reference to this object so that method calls can be chained together. */ public ParameterRanges withCategoricalParameterRanges(java.util.Collection* A list containing hyperparameter names and example values to be used by Autotune to determine optimal ranges for * your tuning job. *
* * @return A list containing hyperparameter names and example values to be used by Autotune to determine optimal * ranges for your tuning job. */ public java.util.List* A list containing hyperparameter names and example values to be used by Autotune to determine optimal ranges for * your tuning job. *
* * @param autoParameters * A list containing hyperparameter names and example values to be used by Autotune to determine optimal * ranges for your tuning job. */ public void setAutoParameters(java.util.Collection* A list containing hyperparameter names and example values to be used by Autotune to determine optimal ranges for * your tuning job. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAutoParameters(java.util.Collection)} or {@link #withAutoParameters(java.util.Collection)} if you want * to override the existing values. *
* * @param autoParameters * A list containing hyperparameter names and example values to be used by Autotune to determine optimal * ranges for your tuning job. * @return Returns a reference to this object so that method calls can be chained together. */ public ParameterRanges withAutoParameters(AutoParameter... autoParameters) { if (this.autoParameters == null) { setAutoParameters(new java.util.ArrayList* A list containing hyperparameter names and example values to be used by Autotune to determine optimal ranges for * your tuning job. *
* * @param autoParameters * A list containing hyperparameter names and example values to be used by Autotune to determine optimal * ranges for your tuning job. * @return Returns a reference to this object so that method calls can be chained together. */ public ParameterRanges withAutoParameters(java.util.Collection