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)) {
  dials::new_qual_param(
    type = "logical",
    values = values,
    label = c(all_neighbors = "All Neighbors"),
    finalize = NULL
  )
}
tidymodels/dials documentation built on March 18, 2024, 6:30 a.m.