R/param_all_neighbors.R

Defines functions all_neighbors

Documented in all_neighbors

#' Parameter to determine which neighbors to use
#'
#' Used in `themis::step_bsmote()`.
#'
#' @param values A vector of possible values (TRUE or FALSE).
#' @examples
#' all_neighbors()
#' @export
all_neighbors <- function(values = c(TRUE, FALSE)) {
  new_qual_param(
    type = "logical",
    values = values,
    label = c(all_neighbors = "All Neighbors"),
    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 12, 2025, 1:46 a.m.