setBinaryTargetLevel {caretEnsemble}R Documentation

Set the target binary class level

Description

For binary classification problems, ensemble stacks and certain performance measures require an awareness of which class in a two-factor outcome is the "target" class. By default, the first level in an outcome factor is used but this value can be overridden using setBinaryTargetLevel(2L)

Usage

setBinaryTargetLevel(level)

Arguments

level

an integer in {1, 2} to be used as target outcome level

See Also

getBinaryTargetLevel


[Package caretEnsemble version 2.0.1 Index]