ParameterRange | R Documentation |
Base class for representing parameter ranges. This is used to define what hyperparameters to tune for an Amazon SageMaker hyperparameter tuning job and to verify hyperparameters for Marketplace Algorithms.
.all_types
All types of child class
min_value
The minimum value for the range
max_value
The maximum value for the rang
scaling_type
The scale used for searching the range during tuning
new()
Initialize a parameter range.
ParameterRange$new( min_value, max_value, scaling_type = c("Auto", "Linear", "Logarithmic", "ReverseLogarithmic") )
min_value
(float or int): The minimum value for the range.
max_value
(float or int): The maximum value for the range.
scaling_type
(str): The scale used for searching the range during tuning (default: 'Auto'). Valid values: 'Auto', 'Linear', Logarithmic' and 'ReverseLogarithmic'.
is_valid()
Determine if a value is valid within this ParameterRange.
ParameterRange$is_valid(value)
value
(float or int): The value to be verified.
bool: True if valid, False otherwise.
cast_to_type()
cast value to numeric
ParameterRange$cast_to_type(value)
value
The value to be verified.
as_tuning_range()
Represent the parameter range as a dicionary suitable for a request to create an Amazon SageMaker hyperparameter tuning job.
ParameterRange$as_tuning_range(name)
name
(str): The name of the hyperparameter.
dict[str, str]: A dictionary that contains the name and values of the hyperparameter.
format()
format class
ParameterRange$format()
clone()
The objects of this class are cloneable with this method.
ParameterRange$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.