Learn R Programming

comparer (version 0.2.4)

par_unif: Uniform parameter

Description

Parameter with uniform distribution for hyperparameter optimization

Usage

par_unif(name, lower, upper)

Value

Returns an R6 class generated by R6_par_unif.

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

Examples

Run this code
p1 <- par_unif('x1', 1, 10)
class(p1)
print(p1)

Run the code above in your browser using DataLab