unknown {dials} | R Documentation |
Placeholder for unknown parameter values
Description
unknown()
creates an expression used to signify that the value will be
specified at a later time.
Usage
unknown()
is_unknown(x)
has_unknowns(object)
Arguments
x |
An object or vector or objects to test for unknown-ness. |
object |
An object of class |
Value
unknown()
returns expression value for unknown()
.
is_unknown()
returns a vector of logicals as long as x
that are TRUE
is the element of x
is unknown, and FALSE
otherwise.
has_unknowns()
returns a single logical indicating if the range
of a param
object has any unknown values.
Examples
# Just returns an expression
unknown()
# Of course, true!
is_unknown(unknown())
# Create a range with a minimum of 1
# and an unknown maximum
range <- c(1, unknown())
range
# The first value is known, the
# second is not
is_unknown(range)
# mtry()'s maximum value is not known at
# creation time
has_unknowns(mtry())
[Package dials version 1.3.0 Index]