information_gain: Computes information gain based on Shannon and Weaver's...

View source: R/information_gain.R

information_gainR Documentation

Computes information gain based on Shannon and Weaver's entropy

Description

Computes information gain based on standard entropy.

Usage

information_gain(data, feature, target, bins = 4)

Arguments

data

Data frame for information gain computation

feature

Selected input feature

target

Selected target feature

bins

Number of bins to handle numeric features

Value

information gain value

Examples

information_gain(whisky_collection, "RATING", "PRICE", bins=5)

dominikjung42/dstools documentation built on June 16, 2024, 2:40 a.m.