Description Usage Arguments Value Examples
View source: R/information_theory.R
Computes the information gain between an 'input' and 'target' variable (using log2). Similar to information gain but less sensitive to high cardinality variables.
1 | gain_ratio(input, target)
|
input |
numeric/character vector |
target |
numeric/character vector |
gain ratio
1 2 3 4 | ## Not run:
gain_ratio(input=data_golf$outlook, target=data_golf$play_golf)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.