Download M5PrimeLab

Transcript
1. INTRODUCTION
What is M5PrimeLab
M5PrimeLab is a Matlab/Octave toolbox for building regression trees and model trees using
M5' method (Wang & Witten, 1997; Quinlan, 1992) as well as building ensembles of M5' trees
using Bagging (Breiman, 1996), Random Forests (Breiman, 2001; Breiman, 2002), and Extremely
Randomized Trees (also known as Extra-Trees) (Geurts et al., 2006). The built trees can also be
linearized into decision rules either directly or using the M5'Rules method (Holmes et al., 1999).
With this toolbox you can build trees and decision rules either individually or in ensembles and
test them on separate test sets or using Cross-Validation, use them for prediction, assess variable
importance, as well as print and plot the structure. M5PrimeLab accepts input variables to be
continuous, binary, and categorical, as well as manages missing values.
Note that regardless of which ensembling algorithm one chooses, M5PrimeLab builds the
individual trees according to the M5' method, i.e., usage of the Standard Deviation Reduction
criterion as well as how the categorical input variables are dealt with and other details specific to
the method are not reconfigurable. Also see the note on Extra-Trees below.
This user's manual provides overview of the functions available in the M5PrimeLab.
M5PrimeLab can be downloaded at http://www.cs.rtu.lv/jekabsons/.
The toolbox code is licensed under the GNU GPL ver. 3 or any later version.
A note on Extremely Randomized Trees implementation in M5PrimeLab
The current implementation of Extra-Trees in M5PrimeLab deals with categorical variables
with more than two categories differently from how the standard Extra-Trees method does it.
In standard Extra-Trees (Geurts et al., 2006), if a categorical variable is chosen for splitting, two
random subsets of categories are drawn – one from the list of categories that reached the node and
the other from the list that did not reach the node. The splitting point is then the union of those two
subsets versus all the other categories.
In the M5PrimeLab implementation of Extra-Trees, such categorical variables are automatically
replaced with synthetic binary variables in accordance with the M5' method before any building of
trees is even started. The number of the synthetic binary variables is equal to the number of
categories minus one. If such a categorical variable is chosen for splitting, the splitting point is then
defined using one of those synthetic binary variables, chosen randomly.
The more such categorical variables are in the data, the potentially more different the results
from the standard Extra-Trees.
However, note that continuous and binary variables are dealt with exactly in the same way as in
standard Extra-Trees.
Feedback
For any feedback on the toolbox including bug reports feel free to contact me via the email
address given on the title page of this user's manual.
Citing the M5PrimeLab toolbox
Jekabsons G., M5PrimeLab: M5' regression tree, model tree, and tree ensemble toolbox for
Matlab/Octave, 2015, available at http://www.cs.rtu.lv/jekabsons/
3