man-roxygen/section_contrasts.R

#' @section Contrasts:
#' To ensure reproducibility, this learner always uses the default contrasts:
#'
#' * [contr.treatment()] for unordered factors, and
#' * [contr.poly()] for ordered factors.
#'
#' Setting the option `"contrasts"` does not have any effect.
#' Instead, set the respective hyperparameter or use \CRANpkg{mlr3pipelines} to create dummy features.
mlr-org/mlr3learners documentation built on Feb. 16, 2025, 9:34 a.m.