Learn R Programming

familiar (version 1.5.0)

.parse_integer_features: Internal function for converting integer features

Description

Internal function for converting integer features

Usage

.parse_integer_features(data, outcome_type)

Value

data.table with integer features converted to double.

Arguments

data

data.table with feature data

outcome_type

character, indicating the type of outcome

Details

This function parses columns containing integer feature data to features to double. This prevents, e.g., errors when the result of an operation on the feature data yields a non-integer (i.e. floating point) result.