information_gain: Information gain

View source: R/information_theory.R

information_gainR Documentation

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)

Arguments

input

numeric/character vector

target

numeric/character vector

Value

information gain

Examples

## Not run: 
information_gain(input=data_golf$outlook, target=data_golf$play_golf)

## End(Not run)

pablo14/funModeling documentation built on July 30, 2023, 10:59 a.m.