dummy_classifier_caret: dummy classifier for a categorical variable, used with the...

View source: R/dummy_classifier_caret.R

dummy_classifier_caretR Documentation

dummy classifier for a categorical variable, used with the train function in caret.

Description

dummy classifier for a categorical variable, used with the train function in caret.

Usage

dummy_classifier_caret(
  strategy = "proportional",
  constant = NULL,
  random_state = NULL
)

Arguments

strategy

a strategy from "constant", "most_frequent", "proportional", "uniform", or "stratified".

constant

a constant value for the constant strategy.

random_state

a random seed.

Value

a list


basemodels documentation built on Aug. 9, 2023, 9:09 a.m.