Description Usage Arguments Value Author(s)
This is a rudimentary implementation of Random Forest using rpart. It primarily serves as a proof of concept to utilize the "treelm" function to enable the representation of a Random Forest as a collection of linear model design matrices
1 2 3 4 5 6 7 8 9 | rpartforest(
y,
x,
test,
mtry,
ntrees,
getlm = F,
contrl = rpart.control(minsplit = 5, minbucket = 1, cp = 0.001)
)
|
y |
|
x |
|
test |
|
mtry |
|
ntrees |
|
getlm |
|
contrl- |
control parameters for rpart; refer to that documentation for details |
A matrix of predicted values from each base learner as well as ANOVA matrices encoding the training and testing data
Ian Frankenburg
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.