View source: R/bound_prediction.R
bound_prediction | R Documentation |
For user-defined lower_limit
and/or upper_limit
bound, ensure that the values in the
.pred
column are coerced to these bounds.
bound_prediction(
x,
lower_limit = -Inf,
upper_limit = Inf,
call = rlang::current_env()
)
x |
A data frame that contains a numeric column named |
lower_limit , upper_limit |
Single numerics (or |
call |
The call to be displayed in warnings or errors. |
x
with potentially adjusted values.
data(solubility_test, package = "yardstick")
names(solubility_test) <- c("solubility", ".pred")
bound_prediction(solubility_test, lower_limit = -1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.