R6 class for hyperparameter on log10 scale
R6 class for hyperparameter on log10 scale
comparer::par_hype -> par_log10
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()
Inherited methods
fromraw()Function to convert from raw scale to transformed scale
R6_par_log10$fromraw(x)xValue of raw scale
toraw()Function to convert from transformed scale to raw scale
R6_par_log10$toraw(x)xValue of transformed scale
generate()Generate values in the raw space based on quantiles.
R6_par_log10$generate(q)qIn [0,1].
isvalid()Check if input is valid for parameter
R6_par_log10$isvalid(x)xParameter value
convert_to_mopar()Convert this to a parameter for the mixopt R package.
R6_par_log10$convert_to_mopar(raw_scale = FALSE)raw_scaleShould it be on the raw scale?
new()Create a hyperparameter with uniform distribution
R6_par_log10$new(name, lower, upper)nameName of the parameter, must match the input to `eval_func`.
lowerLower bound of the parameter
upperUpper bound of the parameter
...not used
clone()The objects of this class are cloneable with this method.
R6_par_log10$clone(deep = FALSE)deepWhether to make a deep clone.
p1 <- par_log10('x1', 1e-4, 1e4)
class(p1)
print(p1)
Run the code above in your browser using DataLab