View source: R/information_gain.R
information_gain | R Documentation |
Computes information gain based on standard entropy.
information_gain(data, feature, target, bins = 4)
data |
Data frame for information gain computation |
feature |
Selected input feature |
target |
Selected target feature |
bins |
Number of bins to handle numeric features |
information gain value
information_gain(whisky_collection, "RATING", "PRICE", bins=5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.