Learn R Programming

funModeling (version 1.9.5)

information_gain: Information gain

Description

Computes the information gain between an 'input' and 'target' variable (using log2). In general terms, the higher the more predictable the input is.

Usage

information_gain(input, target)

Value

information gain

Arguments

input

numeric/character vector

target

numeric/character vector

Examples

Run this code
# \donttest{
information_gain(input=data_golf$outlook, target=data_golf$play_golf)
# }

Run the code above in your browser using DataLab