View source: R/information_theory.R
information_gain | R Documentation |
Computes the information gain between an 'input' and 'target' variable (using log2). In general terms, the higher the more predictable the input is.
information_gain(input, target)
input |
numeric/character vector |
target |
numeric/character vector |
information gain
information_gain(input=data_golf$outlook, target=data_golf$play_golf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.