Interpret Tree Ensembles

For tree ensembles such as random forests, regularized random forests and gradient boosted trees, this package provides functions for: extracting, measuring and pruning rules; selecting a compact rule set; summarizing rules into a learner; calculating frequent variable interactions; formatting rules in latex code.


Version 1.0

  • First version of inTrees.

Version 1.1

  • add typeDecay in pruneSingleRule (relative error increase or error increase)
  • revise the simulate data function (team optimization data)

Version 1.2

  • add support for xgboost
  • add rounding option for rule extraction
  • mute Apriori function when generating frequent patterns
  • Xin Guan and Vadim Khotilovich contributed to this release

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


1.2 by Houtao Deng, 4 years ago

Report a bug at

Browse source code at

Authors: Houtao Deng , Xin Guan , Vadim Khotilovich

Documentation:   PDF Manual  

GPL (>= 3) license

Imports RRF, arules, gbm, xtable, xgboost, data.table, methods

Imported by horserule.

See at CRAN