| R6_par_integer {comparer} | R Documentation |
Parameter with uniform distribution over integer range for hyperparameter optimization
Description
Parameter with uniform distribution over integer range for hyperparameter optimization
Parameter with uniform distribution over integer range for hyperparameter optimization
Super class
comparer::par_hype -> par_integer
Public fields
nameName of the parameter, must match the input to 'eval_func'.
lowerLower bound of the parameter
upperUpper bound of the parameter
ggtransTransformation for ggplot, see ggplot2::scale_x_continuous()
Methods
Public methods
Method fromraw()
Function to convert from raw scale to transformed scale
Usage
R6_par_integer$fromraw(x)
Arguments
xValue of raw scale
Method toraw()
Function to convert from transformed scale to raw scale
Usage
R6_par_integer$toraw(x)
Arguments
xValue of transformed scale
Method generate()
Generate values in the raw space based on quantiles.
Usage
R6_par_integer$generate(q)
Arguments
qIn [0,1].
Method getseq()
Get a sequence, uniform on the transformed scale
Usage
R6_par_integer$getseq(n)
Arguments
nNumber of points. Ignored for discrete.
Method isvalid()
Check if input is valid for parameter
Usage
R6_par_integer$isvalid(x)
Arguments
xParameter value
Method convert_to_mopar()
Convert this to a parameter for the mixopt R package.
Usage
R6_par_integer$convert_to_mopar(raw_scale = FALSE)
Arguments
raw_scaleShould it be on the raw scale?
Method new()
Create a hyperparameter with uniform distribution
Usage
R6_par_integer$new(name, lower, upper)
Arguments
nameName of the parameter, must match the input to 'eval_func'.
lowerLower bound of the parameter
upperUpper bound of the parameter
Method print()
Print details of the object.
Usage
R6_par_integer$print(...)
Arguments
...not used,
Method clone()
The objects of this class are cloneable with this method.
Usage
R6_par_integer$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
Examples
p1 <- R6_par_integer$new('x1', 0, 2)
class(p1)
print(p1)