powered by
Computes the information gain between an 'input' and 'target' variable (using log2). Similar to information gain but less sensitive to high cardinality variables.
gain_ratio(input, target)
numeric/character vector
gain ratio
# NOT RUN { gain_ratio(input=data_golf$outlook, target=data_golf$play_golf) # }
Run the code above in your browser using DataLab