R/param_smoothness.R

Defines functions smoothness

Documented in smoothness

#' Kernel Smoothness
#'
#' Used in `discrim::naive_Bayes()`.
#'
#' @inheritParams Laplace
#' @examples
#' smoothness()
#' @export
smoothness <- function(range = c(0.5, 1.5), trans = NULL) {
  new_quant_param(
    type = "double",
    range = range,
    inclusive = c(TRUE, TRUE),
    trans = trans,
    label = c(smoothness = "Kernel Smoothness"),
    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.