R/param_regularization_method.R

Defines functions regularization_method

Documented in regularization_method

#' Estimation methods for regularized models
#'
#' @param values A character string of possible values. See `values_regularization_method`
#'  in examples below.
#'
#' @details
#' This parameter is used in [discrim::discrim_linear()].
#' @examples
#' values_regularization_method
#' regularization_method()
#' @export
regularization_method <- function(values = values_regularization_method) {
  new_qual_param(
    type = "character",
    values = values,
    label = c(regularization_method = "Regularization Method"),
    finalize = NULL
  )
}

#' @rdname regularization_method
#' @export
values_regularization_method <-
  c("diagonal", "min_distance", "shrink_cov", "shrink_mean")

Try the dials package in your browser

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

dials documentation built on Sept. 10, 2021, 5:06 p.m.