R6_par_unif {comparer} | R Documentation |
R6 class for Uniform parameter
Description
R6 class for Uniform parameter
R6 class for Uniform parameter
Details
Parameter with uniform distribution for hyperparameter optimization
Super class
comparer::par_hype
-> par_unif
Public fields
name
Name of the parameter, must match the input to 'eval_func'.
lower
Lower bound of the parameter
upper
Upper bound of the parameter
ggtrans
Transformation for ggplot, see ggplot2::scale_x_continuous()
Methods
Public methods
Inherited methods
Method fromraw()
Function to convert from raw scale to transformed scale
Usage
R6_par_unif$fromraw(x)
Arguments
x
Value of raw scale
Method toraw()
Function to convert from transformed scale to raw scale
Usage
R6_par_unif$toraw(x)
Arguments
x
Value of transformed scale
Method generate()
Generate values in the raw space based on quantiles.
Usage
R6_par_unif$generate(q)
Arguments
q
In [0,1].
Method isvalid()
Check if input is valid for parameter
Usage
R6_par_unif$isvalid(x)
Arguments
x
Parameter value
Method convert_to_mopar()
Convert this to a parameter for the mixopt R package.
Usage
R6_par_unif$convert_to_mopar(raw_scale = FALSE)
Arguments
raw_scale
Should it be on the raw scale?
Method new()
Create a hyperparameter with uniform distribution
Usage
R6_par_unif$new(name, lower, upper)
Arguments
name
Name of the parameter, must match the input to 'eval_func'.
lower
Lower bound of the parameter
upper
Upper bound of the parameter
Method print()
Print details of the object.
Usage
R6_par_unif$print(...)
Arguments
...
not used,
Method clone()
The objects of this class are cloneable with this method.
Usage
R6_par_unif$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.