Internal function for setting categorical features
.parse_categorical_features(data, outcome_type, reference_method = "auto")
data.table with several features converted to factor.
data.table with feature data
character, indicating the type of outcome
character, indicating the type of method used to set the reference level.
This function parses columns containing feature data to factors if
the data contained therein have logical (TRUE, FALSE), character, or factor
classes. Unless passed as feature names with reference
, numerical data,
including integers, are not converted to factors.