InfGain: computes information gain for each parent node in a tree

Description Usage Arguments Value Author(s)

Description

information gain for each parent node in a tree

Usage

1
2
3
4
InfGain(tree, total = TRUE, zeroLeaf = TRUE, score = c("PMDI21", 


    "MDI", "MDA", "MIA")[1], verbose = 0)

Arguments

tree

tree (from randomForest::getTree)

total

if TRUE compute the sum instead of the mean

zeroLeaf

if TRUE discard the information gain due to splits resulting in n=1

score

scoring method:MDI=mean decrease impurity (Gini),MDA=mean decrease accuracy (permutation),MIA=mean increase accuracy

verbose

level of verbosity

Value

tree object augmented with information gain at each node

Author(s)

Markus Loecher <Markus.Loecher@gmail.com>


markusloecher/rfVarImpOOB documentation built on July 5, 2020, 6:50 p.m.