| R6_par_unordered | R Documentation |
R6 class for hyperparameter of discrete (factor) variable
R6 class for hyperparameter of discrete (factor) variable
comparer::par_hype -> par_unordered
nameName of the parameter, must match the input to 'eval_func'.
valuesVector of values
ggtransTransformation for ggplot, see ggplot2::scale_x_continuous()
lowerLower bound of the parameter
upperUpper bound of the parameter
fromraw()Function to convert from raw scale to transformed scale
R6_par_unordered$fromraw(x)
xValue of raw scale
toraw()Function to convert from transformed scale to raw scale
R6_par_unordered$toraw(x)
xValue of transformed scale
fromint()Convert from integer index to actual value
R6_par_unordered$fromint(x)
xInteger index
toint()Convert from value to integer index
R6_par_unordered$toint(x)
xValue
generate()Generate values in the raw space based on quantiles.
R6_par_unordered$generate(q)
qIn [0,1].
getseq()Get a sequence, uniform on the transformed scale
R6_par_unordered$getseq(n)
nNumber of points. Ignored for discrete.
isvalid()Check if input is valid for parameter
R6_par_unordered$isvalid(x)
xParameter value
convert_to_mopar()Convert this to a parameter for the mixopt R package.
R6_par_unordered$convert_to_mopar(raw_scale = FALSE)
raw_scaleShould it be on the raw scale?
new()Create a hyperparameter with uniform distribution
R6_par_unordered$new(name, values)
nameName of the parameter, must match the input to 'eval_func'.
valuesThe values the variable can take on.
print()Print details of the object.
R6_par_unordered$print(...)
...not used
clone()The objects of this class are cloneable with this method.
R6_par_unordered$clone(deep = FALSE)
deepWhether to make a deep clone.
p1 <- par_unordered('x1', c('a', 'b', 'c'))
class(p1)
print(p1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.