gain_ratio: Gain ratio

View source: R/information_theory.R

gain_ratioR Documentation

Gain ratio

Description

Computes the information gain between an 'input' and 'target' variable (using log2). Similar to information gain but less sensitive to high cardinality variables.

Usage

gain_ratio(input, target)

Arguments

input

numeric/character vector

target

numeric/character vector

Value

gain ratio

Examples


gain_ratio(input=data_golf$outlook, target=data_golf$play_golf)


funModeling documentation built on May 29, 2024, 3:24 a.m.