Learn R Programming

inTrees (version 1.3)

pruneRule: Prune irrevant variable-value pair from a rule condition

Description

Prune irrevant variable-value pair from a rule condition

Usage

pruneRule(rules, X, target, maxDecay = 0.05, typeDecay = 2)

Arguments

rules

A metrix including the rules and metrics

X

predictor variable matrix

target

target variable vector

maxDecay

threshold of decay

typeDecay

1: relative error; 2: error; default :2

Value

A matrix including the rules each being pruned, and metrics

References

Houtao Deng, Interpreting Tree Ensembles with inTrees, technical report, 2014

See Also

buildLearner

Examples

Run this code
# NOT RUN {
# see function "buildLearner"
# }

Run the code above in your browser using DataLab