dummy_classifier_caret {basemodels} | R 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
[Package basemodels version 1.1.0 Index]