pruneRule {inTrees} | R Documentation |
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
Author(s)
Houtao Deng
References
Houtao Deng, Interpreting Tree Ensembles with inTrees, technical report, 2014
See Also
Examples
# see function "buildLearner"
[Package inTrees version 1.4 Index]