dot-parse_categorical_features: Internal function for setting categorical features

.parse_categorical_featuresR Documentation

Internal function for setting categorical features

Description

Internal function for setting categorical features

Usage

.parse_categorical_features(data, outcome_type, reference_method = "auto")

Arguments

data

data.table with feature data

outcome_type

character, indicating the type of outcome

reference_method

character, indicating the type of method used to set the reference level.

Details

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.

Value

data.table with several features converted to factor.


familiar documentation built on Sept. 30, 2024, 9:18 a.m.