Learn R Programming

caretEnsemble (version 4.0.1)

dropExcludedClass: Drop Excluded Class

Description

Drop the excluded class from a prediction data.table

Usage

dropExcludedClass(x, all_classes, excluded_class_id)

Arguments

x

a data.table of predictions

all_classes

a character vector of all classes

excluded_class_id

an integer indicating the class to exclude