check_y: Confirm that a target vector is suitable for a classification...

Description Usage Arguments Value See Also Examples

Description

copied from train.

Usage

1

Arguments

y

x_fct or x_chr to with true labels

modelType

chr(1)

Value

silent; raises if ill-suited model target

See Also

Other checks: check_dfs_fct_match

Examples

1
2
3
4
check_y(iris[, 5])
suppressMessages(check_y(iris[, 5]))
try(check_y(fct_expand(iris[, 5], "new_lvl")))
try(check_y(fct_recode(iris[, 5], "3x" = "setosa")))

mbadge/hipsMultimodal documentation built on May 9, 2019, 12:05 a.m.