R/param_validation_set_prop.R

Defines functions validation_set_prop

Documented in validation_set_prop

#' Proportion of data used for validation
#'
#' Used in `embed::step_discretize_xgb()`.
#'
#' @inheritParams Laplace
#' @examples
#' validation_set_prop()
#' @export
validation_set_prop <- function(range = c(0.05, 0.7), trans = NULL) {
  new_quant_param(
    type = "double",
    range = range,
    inclusive = c(TRUE, TRUE),
    trans = trans,
    label = c(validation_set_prop = "Proportion of data for validation"),
    finalize = NULL
  )
}

Try the dials package in your browser

Any scripts or data that you put into this service are public.

dials documentation built on April 3, 2023, 5:43 p.m.