gain_ratio {funModeling} | R Documentation |
Gain ratio
Description
Computes the information gain between an 'input' and 'target' variable (using log2). Similar to information gain but less sensitive to high cardinality variables.
Usage
gain_ratio(input, target)
Arguments
input |
numeric/character vector |
target |
numeric/character vector |
Value
gain ratio
Examples
gain_ratio(input=data_golf$outlook, target=data_golf$play_golf)
[Package funModeling version 1.9.5 Index]